quohog Posted May 17, 2020 Share Posted May 17, 2020 I know how to use breakif in Stella to stop the code from running if a certain condition is met, but in my current program, things are going haywire in the very first frame! How can I start up Stella, or restart my .bin, with the first breakpoint set either at the very start of code, or somewhere before the first frame is drawn? Thank you! Quote Link to comment Share on other sites More sharing options...
+stephena Posted May 17, 2020 Share Posted May 17, 2020 From the ROM launcher, right-click on the game, select Power-on Options. Then for Startup mode, select Debugger. This will start the debugger before the very first instruction is executed. There's also a way to do this from the commandline if you prefer. Quote Link to comment Share on other sites More sharing options...
quohog Posted May 18, 2020 Author Share Posted May 18, 2020 Oh, that's great news! Thanks for the quick answer! Quote Link to comment Share on other sites More sharing options...
+Andrew Davie Posted May 18, 2020 Share Posted May 18, 2020 I just run the program, hit the tilde (~) and then I'm in the debugger. Then I type "reset" and I'm at the start of the program. I can step through from there, and/or put breakpoints (with mouse-click) on the part I'm interested in. Quote Link to comment Share on other sites More sharing options...
quohog Posted May 18, 2020 Author Share Posted May 18, 2020 Reset! That sounds like a handy command. Thank you! Really enjoyed your book, by the way! 1 Quote Link to comment Share on other sites More sharing options...
+stephena Posted May 18, 2020 Share Posted May 18, 2020 Yep, 'reset' from the debugger is another way to do it. Yet another way is to use the '-debug' commandline argument. As with a lot of things in Stella, there's usually more than one way of accomplishing something. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.