https://github.com/mgerhardy/lua_stackdump
C header only helper to print lua stackdumps
https://github.com/mgerhardy/lua_stackdump
header-only lua lua-stackdump public-domain
Last synced: 11 days ago
JSON representation
C header only helper to print lua stackdumps
- Host: GitHub
- URL: https://github.com/mgerhardy/lua_stackdump
- Owner: mgerhardy
- Created: 2016-10-10T14:31:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-10T20:00:32.000Z (over 8 years ago)
- Last Synced: 2025-04-11T23:52:53.720Z (11 days ago)
- Topics: header-only, lua, lua-stackdump, public-domain
- Language: C
- Size: 3.91 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lua_stackdump
C/C++ header only helper to print lua stackdumps
There are still a few TODOs in the code - pull requests are welcome
Public Domain
Example output:
```
--------------------start-of-stacktrace----------------
index | details (4 entries)
-1 | [string ""]:10: attempt to concatenate a nil value (local 'deltaMillis') (string)
-2 | userdata [0x7d1000000750] (no metatable)
-3 | userdata [0x7d0c00000cb8] (no metatable)
-4 | table: 0x7d1000000640 (size: 5)
\-- __newindex (string) = function [0x980c90]
\-- __name (string) = node (string)
\-- __tostring (string) = function [0x980aa0] (bad argument #1 to '?' (node expected, got no value))
\-- __index (string) = table: 0x7d1000000640 (size: 5)
\-- __newindex (string) = function [0x980c90]
\-- __name (string) = node (string)
\-- __tostring (string) = function [0x980aa0] (bad argument #1 to '?' (node expected, got no value))
\-- __index (string) = table: 0x7d1000000640 (size: 5)
\-- execute (string) = function [0x7d0c00000c60]
\-- execute (string) = function [0x7d0c00000c60]
----------------------end-of-stacktrace----------------
```