Debugger bug - breakpoint ignored and breaks backbuffer

Previous topic - Next topic

FutureCow

A breakpoint on the first line of code in your program doesn't work.

Example code
Code (glbasic) Select
PRINT ASC("a"), 100, 100
SHOWSCREEN
MOUSEWAIT


When run without debug, you get "97" printed at location 100,100 as you'd expect.

If you put a breakpoint on the first line ("print ...") and compile in deub mode the breakpoint is ignored.
From this point when you run your program you no longer get any output (regardless of whether the breakpoint is left in or removed). If however you now change your code to add an initial showscreen like so
Code (glbasic) Select

SHOWSCREEN
PRINT ASC("a"), 100, 100
SHOWSCREEN
MOUSEWAIT

you can see now your output - the bug appears to have broken the program's initial backbuffer.