Hacker News new | past | comments | ask | show | jobs | submit login
Lua-Resty-Inspect (github.com/kingluo)
1 point by kingluo on Sept 1, 2022 | hide | past | favorite | 1 comment



It's useful to set arbitrary breakpoint in any lua file to inspect the context infomation, e.g. print local variables if some condition satisfied.

In this way, you don't need to modify the source codes of your project, and just get diagnose infomation on demand, i.e. dynamic logging.

This library supports setting breakpoints within both interpretd function and jit compiled function. The breakpoint could be at any position within the function. The function could be global/local/module/ananymous.

Features:

set breakpoint at any position

dynamic breakpoint

Customized breakpoint handler

you could define one-shot breakpoint

work for jit compiled function

if function reference specified, then performance impact is only bound to that function

if all breakpoints deleted, jit could recover




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: