- Press ctr+f6 to toggle the debugger while testing a world from the editor.
- The first robot in the "Watch robot" list is always the global robot
- The debugger opens in a separate application, so you're going to have to pay attention to which window is receiving input when pressing keys
In the debugger:
- F6 toggles following the active line
- F7 toggles a breakpoint for the current line
- F8 pauses execution
- F9 single steps a single command for the watched robot, or executes the rest of a cycle for the board if the robot's finished
- F10 continues normal execution
- F11 triggers the "Watch robot" menu in the main Megazeux window
- Up/down/page up/page down work like usual - the active robotic line is highlighted in green in case you get lost
- Escape closes the debugger
Known bugs:
- Everything crashes if a robot stops existing for any reason
- Don't even try to leave the current board while debugging right now
- While Megazeux pauses immediately when pressing F8 in the debugger, the robotic editor takes a bit to catch up
- Closing the debugger via ESC can cause Megazeux to crash on occasion
- The debugger doesn't give good feedback when stepping through 'end' and end of program
- Stepping through dialog boxes causes execution to continue afterwards
- Updating the watched robot's program via LOAD_BC or LOAD_ROBOT will not be reflected in the debugger
I'm expecting there to be about 1 million more bugs, so have at it. Feature requests, comments, patches, all good as well. Obtain the source tarball for this release at http://www.joshmatth...xdbgsrc.tar.bz2; I'm still working on getting a repo set up but I'm having some problems. The debugger should build by default with the normal configuration. Also, feedback on whether this works on MacOS or Windows would be rad.