Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Monitor / Breakpoint  (Read 2438 times)

0 Members and 2 Guests are viewing this topic.

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Monitor / Breakpoint
« 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,
Logged

Sidewinder

  • Forum Mod
  • A600
  • *****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • http://www.liquido2.com/
Re: Monitor / Breakpoint
« Reply #1 on: July 26, 2016, 03:34:17 PM »

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.
Logged
- Sidewinder

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Monitor / Breakpoint
« Reply #2 on: July 27, 2016, 11:19:55 PM »

 :) thank you, I can see how that works now and it's doing what I need...
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022