Search code examples
windowsvisual-studiofullscreenbreakpointsglfw

How to stop fullscreen from locking PC when VS 2015 triggers a breakpoint?


Booting my GLFW application in fullscreen is currently unsafe as if VS2015 decides to trigger a breakpoint due to some sort of error such as an access violation, I am completely locked into a black screen with a cursor on it until I forcibly reboot.

  • The entire screen is black except for the mouse cursor, which is the spinning/waiting icon unless I move the cursor into the taskbar area.

  • Locking does not fix it.

  • Ctrl+Alt+Del does not fix it.

  • I have to restart my PC with the power switch every time.

What can I do to make sure fullscreen debugging is safe, or dismiss the breakpoint message (that I probably cannot get to) while I'm "blind"?


Solution

  • You can use either:

    1. Alt+Esc to switch the previous Window (supposedly VS)

    2. Alt+Tab or Win+Tab to switch window and then pick the

    VS window

    then you can do something with the Exception handler/ breakpoint in VS