Page 1 of 1

PB Takes over system, can't change screens ?

Posted: Mon Mar 30, 2020 10:12 pm
by s0ula55a551n
Hi,

Trying out the sprite.pb example. Cant switch back to pb to look at the debugger screens. No key combos work. Trackpad shortcuts don't work.

What am I doing wrong ?

Also the debugger is ignoring line breaks and running the full program.

Opening in a window and then creating a screen seems to fix this problem

Thanks

PureBasic LTS 5.72

Mac OS 10.14.6
MacBook Pro (Retina, 15-inch, Mid 2014)
2.5 GHz Intel Core i7
16 GB 1600 MHz DDR3

Re: PB Takes over system, can't change screens ?

Posted: Tue Mar 31, 2020 5:13 pm
by Wolfram
Try CMD + Tab

Re: PB Takes over system, can't change screens ?

Posted: Tue Mar 31, 2020 10:22 pm
by oreopa
You could also add a check for some temporary key while debugging and fire the debugger manually. However i've not found a way to debug and then restart the program/screen... I don't think that is possible... (could be wrong).

Code: Select all

        If KeyboardReleased(#PB_Key_Tab)
          CallDebugger
        EndIf

Re: PB Takes over system, can't change screens ?

Posted: Wed Apr 01, 2020 2:18 am
by Demivec
A good way to handle the need to do debugging while using a full sized screen is to not use a full sized screen while debugging. :mrgreen:

Instead switch to a full sized windowed screen when want to run the debugger also.

If I find a moment I'll write a brief example to demonstrate this approach.