I'm currently trying to track down an array index out-of-bounds issue. For some reason the Debug output window gets closed when the error is flagged. If I put a delay in I can see the window open and then close again when the runtime error causes the program to shutdown. That makes no sense as the output window normally persists after the program ends, and you need it to persist in this case so that you can see the debug information.
This is with PureBasic 5.73 LTS (Windows - x64) with debug mode enabled.
Code: Select all
; Run this with debugger enabled.
Dim TestArray( 3 )
OpenWindow( 0, 0, 0, 200, 200, "Test", #PB_Window_TitleBar | #PB_Window_SystemMenu )
Debug "Output message."
Delay( 1000 )
a = TestArray( 5 )