New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose debugger functionality to Lua console #2451
Comments
I've got a branch with support for break and watch points at https://github.com/cracyc/mame/tree/lua_debugpoint . |
Why not try to build some sort of bridge by which all debugger commands get exposed to LUA? Granted, there are details that would need to be worked out (commands currently write to the console, and figuring out how to make errors throw LUA exceptions would be non trivial), but that would seem like a better long term solution. |
Okay, I went ahead and did it this way because it requires no changes outside of luaengine. There are three things be aware of here:
|
I'd like to drive the MAME debugger externally, and most of what I need is exposed to the Lua console via the
emu
object already: Memory and hardware introspection, stopping and resuming gameplay.A few crucial parts are missing though: The ability to single-step, set and remove break- and watchpoints, and to get notified when hitting said points.
Is there a chance to get those, or does something fundamentally make that hard to do?
The text was updated successfully, but these errors were encountered: