Debug information not getting updated

Previous topic - Next topic

FutureCow

If your program ends successfully (for example you hit ESC to quit it), the debug tab's information isn't updated to show whatever values the variables contained on the program's end.

Also on an error, the information isn't updated - if your code hits an "Out of DIM array" error, the information in the debug tab doesn't get updated.
e.g.
Code (glbasic) Select
GLOBAL b[]
LOCAL a

a=4
DIMDATA b[],1,2,3

DEBUG "b[a] = "+b[a]+"\n"


This is a pain if, in the above example, you were setting the value of "a" via a loop and wanted to know what value it was hitting when it exceeded the array bounds.

FutureCow

#1
If you're stepping through the code, the debugger updates all variables each step. This "updating" process should happen at the termination of the program to inspect it at the last second.

Putting a breakpoint at the very end would help - it will be annoying though having the program pause just before the end every time. I'd much prefer the debug settings were up to date automatically at the end of the program run.