feature: Mini-Micro Debugger
It would be nice to have a full debugger for Mini-Micro. The debugger should be able to:
- Add / Remove Watch variables
- Set break points
- Step through and into code
- Run Until Return etc.
This could be presented through a Console that can be enabled from the bootOpts.grfon settings. It would allow Mini-Micro to enter into Debug mode or define a key that would switch Mini-Micro into debug mode. Either way, the console would have to be independent of the Mini-Micro Display System so that any errors within Mini-Micro's state wouldn't affect the console. The console may need to be semi-opaque with settings to control the transparency and possibly the colour.
When MM shuts down, the Watch Variables could purge or write out to a file to be restored when MM starts again but purging would probably be safer. However, they should remain between reboots.
Thanks.
Could the Runtime Errors also display in the console? When I use the text display layer for something in game, I lose the ability to easily see the runtime errors. It might be nice to decouple the errors from the game display system so that the errors are always able to be seen when needed even if there isn't a text display layer.
Yes, if the debugger is implemented at the "hardware" level, then it could certainly catch runtime errors.