Debug control?
BlitzPlus Forums/BlitzPlus Beginners Area/Debug control?
| ||
Hello again, Is it possible to flag certain lines in the code so that when that particular line of code is processed the debug stops the program? I used to just click on the side of the code window in Director and it would brink up a little red spot to indicate you wanted to stop the code at that particular point. This must be possible in Blitzplus surely? I'm missing something here I know :) Cheers |
| ||
Use: Stop In Debug mode. |
| ||
Make sure to remove (or comment out) the Stop commands when you are not in Debug mode though, or else your program will freeze... |
| ||
I thought that behaviour was changed at one point to just ignore Stop if Debug wasn't enabled? |
| ||
Well this code:Print "hello" Stop Print "goodbye" WaitKey() End freezes on my computer... |
| ||
Oh. Umm... fair enough. =] I always had a DEBUG constant in my code, which reflected whether the debugger enabled, and covered most things like this in If DEBUG=1 statements anyway... |