debug x+1 just prints (x + 1) and does not increase it, because the debug command has priority and the result is not considered an operation just a print out of X variable + 1...
and yeah, that debugger behaviour threw me of balance as well, but it makes sense: your program's behaviour should not change when you switch the debugger on or off, so if anything behind a 'debug' command is ignored, then that would make sense... kind of
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
debug x+1 just prints (x + 1) and does not increase it, because the debug command has priority and the result is not considered an operation just a print out of X variable + 1...