Trinity-11 / FoenixIDE

Development and Debugging Suite for the C256 Foenix Family of Computers
GNU General Public License v3.0
48 stars 14 forks source link

Add --exec-breakpoint command line option for adding a breakpoint on launch #62

Closed clandrew closed 2 months ago

clandrew commented 2 months ago

For some debugging scenarios, the interesting operation is during kernel load, where the moment passes quickly and you don't have time to click and set a breakpoint in the UI.

For that workflow, it's:

  1. Launch the emulator with the specified kernel
  2. Set a breakpoint in the debugger (although it won't hit now, because it's too late)
  3. Restart the kernel to run it again
  4. Breakpoint hits

With this command line option, it's a lot easier:

  1. Launch the emulator with the specified kernel and breakpoint option
  2. Kernel launches and breakpoint hits

This can also benefit other scenarios where the user has to iterate frequently and run the program under debugger many times, and there's a time savings in not having to go through the UI each time.

This is geared toward execution breakpoints since that's the most common type of breakpoint.