Ultimate Amiga
Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Professional Forum => Topic started by: Mia on July 26, 2016, 12:36:39 PM
-
Is it possible to set a breakpoint in the AMOS monitor? I can't see my screen using the monitor as it gets stuck on top when I'm doing some loops. To help I've got a small screen that I send logging events to so I can see some variables, but I'm trying to debug something that moves... I can write some code to do what I need, but I thought maybe give the "monitor" a go first, I can step through the code but I can't work out how to set a breakpoint, is this even possible? Later I may disect the monitor to see if I can add this, or maybe somebody already has?
Thanks,
-
Yes, when you first open the monitor it should show a program listing below the monitor screen and controls. Find the line you want to break on in the listing. Then click the "BRK" button (just below the red "INIT" button on the right). Once this button is selected, go to the source listing with your mouse and click on the line where you want the break to occur. Once the break point is set the line will be drawn in reverse video. Then, run the monitor as normal, it should break at the line selected.
-
:) thank you, I can see how that works now and it's doing what I need...