awesome/lib/gears
Daniel Hahler 09dce08fd4 gears.debug: add support for limited depth
This is useful with big tables and might even be necessary to prevent
infinite recursion.

To prevent the latter, the default is 10.

This adds an indicator when `depth` is reached for tables.

    awesome# return require("gears").debug.dump_return(t4, "", 2)
       string " : table: 0x1580130
      1 : table: 0x16951d0
        1 : wibox.widget.base (table) […]
        2 : wibox.widget.base (table) […]
        3 : 4 (number)
        4 : 5 (number)
        5 : foo (string)
      2 : table: 0x16ac790
        1 : table: 0x16951d0 (table) […]
      3 : table: 0x16cc500
        1 : table: 0x16951d0 (table) […]
        2 : table: 0x16ac790 (table) […]"

    awesome# return require("gears").debug.dump_return(t4, "", 1)
       string " : table: 0x1580130
      1 : table: 0x16951d0 (table) […]
      2 : table: 0x16ac790 (table) […]
      3 : table: 0x16cc500 (table) […]"

Closes https://github.com/awesomeWM/awesome/pull/372.
2015-08-01 11:24:35 +02:00
..
cache.lua Add a generic cache system as gears.cache 2015-07-25 15:07:47 +02:00
color.lua Use gears.cache to replace some other caches 2015-07-25 15:08:00 +02:00
debug.lua gears.debug: add support for limited depth 2015-08-01 11:24:35 +02:00
init.lua Add a generic cache system as gears.cache 2015-07-25 15:07:47 +02:00
object.lua wibox.widget.base: add __tostring method to widgets 2015-07-26 18:17:01 +02:00
sort.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
surface.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
timer.lua gears.timer: use xpcall with timeout and delayed calls 2015-07-22 13:52:47 +02:00
wallpaper.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00