I am currently using lua_dardo to build an educational coding game for children.
To make this application viable, I have a requirement that relies on the Lua Debug API: I need to know the current line number of the executing script to highlight the code in the UI as it runs.
I attempted to use the standard Lua approach described in Programming in Lua (Hooks), but the debug library and debug.sethook do not appear to be available or exposed. Additionally, looking at the LuaState members in Dart, I could not find a way to retrieve the current stack trace or line number during execution.
This feature is standard in the C-Lua API (lua_sethook). Adding this would significantly widen the use cases for lua_dardo in the Flutter ecosystem.
Thank you for your hard work on this library!
I am currently using
lua_dardoto build an educational coding game for children.To make this application viable, I have a requirement that relies on the Lua Debug API: I need to know the current line number of the executing script to highlight the code in the UI as it runs.
I attempted to use the standard Lua approach described in Programming in Lua (Hooks), but the
debuglibrary anddebug.sethookdo not appear to be available or exposed. Additionally, looking at the LuaState members in Dart, I could not find a way to retrieve the current stack trace or line number during execution.This feature is standard in the C-Lua API (lua_sethook). Adding this would significantly widen the use cases for lua_dardo in the Flutter ecosystem.
Thank you for your hard work on this library!