Author Topic: Debugger stop doesn't stop the program's execution  (Read 2224 times)

Offline FutureCow

  • HelpEditor
  • Prof. Inline
  • ******
  • Posts: 680
    • View Profile
If I'm running my program (GLBasic v10.283) and it runs to a breakpoint, if I hit Debugger->Stop, or shift-f5, the program starts running again instead of stopping the execution flow. From this point it also ignores any further breakpoints it hits.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10815
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
I'll have a look. Very strange. Are you sure the program is halted and has not ended already?

Offline FutureCow

  • HelpEditor
  • Prof. Inline
  • ******
  • Posts: 680
    • View Profile
Yes, control swaps back from the IDE to the program window and my program continues to execute (the graphics continue to update until I quit the program). It happens with both the key sequence and choosing the stop option off the debug menu.

Offline FutureCow

  • HelpEditor
  • Prof. Inline
  • ******
  • Posts: 680
    • View Profile
Just to clarify :
This occurs when control has passed to the IDE (eg. you have hit a breakpoint). If you then hit SHIFT-F5 (or use the menus to stop debugging) the program runs (continues) instead of stopping. Additionally it does not return focus to the program window (another bug?)

If you then select the program window to give it focus, SHIFT-F5 will stop the program.