Emmanuel Lepage Vallée
1f8b07d475
debug: Add a signal for deprecation warnings ( #1832 )
...
Fixes #1612 .
2017-06-21 02:06:32 +02:00
Kevin Zander
7687275607
Move awful.util.deprecate and awful.util.deprecate_class to gears.debug
...
Change all awful.util function calls to gears.debug function calls
Update all old deprecate calls to have deprecated_in=4
2017-03-15 20:08:22 -05:00
Uli Schlachter
259c4f716f
Remove @release @AWESOME_VERSION@ everywhere ( #1157 )
...
It does not provide much value. The version number is already known to
ldoc globally in the "description" variable.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-10-09 22:36:20 +02:00
Uli Schlachter
2ad49dfd0c
Fix some broken documentation in gears.debug
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-02-28 12:05:55 +01:00
Uli Schlachter
8c26e2dab4
Fix all luacheck warnings in lib/gears
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-02-12 09:11:50 +01:00
Uli Schlachter
720cd879f3
Add timestamps to messages on stderr ( #602 )
...
Closes https://github.com/awesomeWM/awesome/pull/606 .
Fixes https://github.com/awesomeWM/awesome/issues/602 .
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-12-31 15:38:17 +01:00
Uli Schlachter
14be909206
Remove gears.debug.assert
...
Lua provides an assert() function already, so let's just use that.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-09-16 15:01:26 +02:00
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
Julian Wollrath
6cc7be512c
Remove the *.in from all files.
...
Signed-off-b: Julian Wollrath <jwollrath@web.de>
2015-06-19 22:33:32 +02:00