Reply To: Debugging Support for Lua

Home Forums General Programming Debugging Support for Lua Reply To: Debugging Support for Lua

#30432
synth
Participant
    • Topics: 13
    • Replies: 35
    • Total: 48

    Looking at this more closely, it seems that what mobdebug does in Lua we can directly do in C++ through the Lua C API : http://www.lua.org/manual/5.1/index.html#index

    MobDebug registers a debug_hook() in Lua and we can register a C function through : http://www.lua.org/manual/5.1/manual.html#lua_Hook

    That would allow us to have a debugger integrated into Ctrlr itself rather then rely on an external debugger server.

    We can also examine variable values and put them in a watch window and show the current stack : http://www.lua.org/manual/5.1/manual.html#lua_Debug

    • This reply was modified 9 years, 6 months ago by synth.
    Ctrlr