Commit Graph

28 Commits (ea2f97e9ed8317dc9a62e45d9a807dca7e3700a5)

Author SHA1 Message Date
Kim Alvefur 43531740f9 util: Prefix module imports with prosody namespace 3 years ago
Matthew Wild a095a0c533 util.debug: Fix locals being reported under wrong stack frame in some cases (+tests!!) 5 years ago
Matthew Wild f728cb7767 Revert util.debug change accidentally committed in e157e5c79daa 4 years ago
Matthew Wild e88413e22b util.pluginloader: Support for multiple pluginloader instances, and options 4 years ago
Kim Alvefur 1438a38845 util: Various minor changes to please [luacheck] 8 years ago
Kim Alvefur 2855a2ce0a util.debug: Produce a sensible name for nameless upvalues to C functions 8 years ago
Kim Alvefur 847ba75e55 util.debug: Silence luacheck warning about modifying 'debug' lib 10 years ago
Kim Alvefur eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 11 years ago
Matthew Wild 82f565b55b util.debug: Fix level of locals when inspecting a coroutine 13 years ago
Matthew Wild 6cd5b48d8f util.debug: Further fix to display locals in extended tracebacks 13 years ago
Matthew Wild 51549fe050 util.debug: Fixes to make coroutine tracebacks work properly 13 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Matthew Wild 463e2326d9 util.debug: Add +1 to level when getting locals table, to account for current function 14 years ago
Matthew Wild 04a6860173 util.debug: Re-fix parameter handling (I think it matches debug.traceback() more accurately now) and document level fudge 14 years ago
Matthew Wild 481b785506 util.debug: Remove 'white' from boundary style (leave at default colour) 14 years ago
Matthew Wild 451a2148c9 util.debug: Some more magic constant fiddling. Don't ask me. 14 years ago
Matthew Wild 97f896be36 util.debug: Turn into a real-ish module ('debugx'), and require you call use() to override debug.traceback() 14 years ago
Matthew Wild 6537bcfb9a util.debug: Move boundary markers to top of relevant sections of the stack trace (easier to follow) 14 years ago
Matthew Wild 68e02ef7ba util.debug: Add a touch of colour to source locations 14 years ago
Matthew Wild c184f4b0a3 util.debug: Add a bit of colour 14 years ago
Matthew Wild 9749a46686 util.debug: Move optimal line length (default 65) into a variable 14 years ago
Matthew Wild b5ff9d70dd util.debug: Add markers in the output when crossing source file boundaries 14 years ago
Matthew Wild 5030d1d07c util.debug: Add catch for an "error in error handling" 14 years ago
Matthew Wild 995f757ab2 util.debug: Attempt to get debug.traceback() parameter handling correct (again) 14 years ago
Matthew Wild e898c68304 util.debug: Adjust level within get_locals_table() to account for the additional depth of this function itself 14 years ago
Matthew Wild 0f23c0b491 util.debug: Fix potential traceback 14 years ago
Matthew Wild aac9bbc13b util.debug: Experimental new library for producing more extensive debug tracebacks 14 years ago