Commit graph

28 commits

Author SHA1 Message Date
Kim Alvefur
43531740f9 util: Prefix module imports with prosody namespace 2023-03-17 16:23:16 +01:00
Matthew Wild
f728cb7767 Revert util.debug change accidentally committed in e157e5c79daa 2022-02-04 15:13:13 +00:00
Matthew Wild
e88413e22b util.pluginloader: Support for multiple pluginloader instances, and options 2022-02-03 12:53:19 +00:00
Matthew Wild
a095a0c533 util.debug: Fix locals being reported under wrong stack frame in some cases (+tests!!) 2020-10-16 13:38:04 +01:00
Kim Alvefur
1438a38845 util: Various minor changes to please [luacheck] 2017-11-10 05:42:32 +01:00
Kim Alvefur
2855a2ce0a util.debug: Produce a sensible name for nameless upvalues to C functions 2017-10-15 11:42:33 +02:00
Kim Alvefur
847ba75e55 util.debug: Silence luacheck warning about modifying 'debug' lib 2016-02-22 17:34:42 +01:00
Kim Alvefur
eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 2015-02-21 10:36:37 +01:00
Matthew Wild
82f565b55b util.debug: Fix level of locals when inspecting a coroutine 2013-08-11 10:42:58 +01:00
Matthew Wild
6cd5b48d8f util.debug: Further fix to display locals in extended tracebacks 2013-08-10 20:40:45 +01:00
Matthew Wild
51549fe050 util.debug: Fixes to make coroutine tracebacks work properly 2013-08-10 20:30:40 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
463e2326d9 util.debug: Add +1 to level when getting locals table, to account for current function 2012-04-28 16:21:19 +01:00
Matthew Wild
04a6860173 util.debug: Re-fix parameter handling (I think it matches debug.traceback() more accurately now) and document level fudge 2012-04-28 16:20:26 +01:00
Matthew Wild
481b785506 util.debug: Remove 'white' from boundary style (leave at default colour) 2012-04-26 05:58:39 +01:00
Matthew Wild
451a2148c9 util.debug: Some more magic constant fiddling. Don't ask me. 2012-04-25 23:16:37 +01:00
Matthew Wild
15175bb828 Merge timber->trunk - thanks everyone! 2012-04-24 21:59:20 +01:00
Matthew Wild
97f896be36 util.debug: Turn into a real-ish module ('debugx'), and require you call use() to override debug.traceback() 2012-04-24 18:53:50 +01:00
Matthew Wild
6537bcfb9a util.debug: Move boundary markers to top of relevant sections of the stack trace (easier to follow) 2012-03-22 16:51:39 +00:00
Matthew Wild
68e02ef7ba util.debug: Add a touch of colour to source locations 2012-03-22 16:39:28 +00:00
Matthew Wild
c184f4b0a3 util.debug: Add a bit of colour 2012-03-22 16:07:57 +00:00
Matthew Wild
9749a46686 util.debug: Move optimal line length (default 65) into a variable 2012-03-22 15:10:38 +00:00
Matthew Wild
b5ff9d70dd util.debug: Add markers in the output when crossing source file boundaries 2012-03-22 15:09:37 +00:00
Matthew Wild
5030d1d07c util.debug: Add catch for an "error in error handling" 2012-03-22 15:08:21 +00:00
Matthew Wild
995f757ab2 util.debug: Attempt to get debug.traceback() parameter handling correct (again) 2012-03-22 15:07:27 +00:00
Matthew Wild
e898c68304 util.debug: Adjust level within get_locals_table() to account for the additional depth of this function itself 2012-01-13 15:46:36 +00:00
Matthew Wild
0f23c0b491 util.debug: Fix potential traceback 2011-11-19 22:40:30 +00:00
Matthew Wild
aac9bbc13b util.debug: Experimental new library for producing more extensive debug tracebacks 2011-11-03 12:41:21 +00:00