For demonstration:
Code: Select all
Debug "Now close the program window"
Debug "Let the debug window open"
Debug "Remove the comment and press F5"
OpenWindow(0, 0, 0, 100, 90, "Test 0", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
SetWindowColor(0, RGB(0, 255, 0))
; This produce an error if uncommented
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
The bad thing is that you are not able to close the debug window when it happened.
You can only move it or make it small.
I tried to close it, I tried to close PB but no reaction.
So I thought everything crashed.
On windows the error message window is above the debug window -> no problem.
Bernd