awesome/lib
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
..
awful Merge pull request #376 from blueyed/more-tostring 2015-08-01 11:22:04 +02:00
beautiful doc: fix invalid @see references to URLs 2015-07-24 01:56:36 +02:00
gears gears.debug: add support for limited depth 2015-08-01 11:24:35 +02:00
menubar Merge pull request #155 from silverhammermba/pango_color 2015-07-25 23:26:22 +02:00
naughty doc: overhaul naughty documentation 2015-07-27 15:54:47 +02:00
wibox wibox: add __tostring metamethod 2015-08-01 11:21:50 +02:00