Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to debug with F11 with VSCODE (toggled Fullscreen)?

It seems that F11 for toggle fullscreen is overwrite F11 "Step into" keyboard shortcut while debugging. How it can be fixed?

like image 374
khayk Avatar asked Apr 29 '15 21:04

khayk


People also ask

What does F11 do in VS Code?

F11/Shift+F11 ⮕ Step into/out This shortcut is to step into the breakpoint or step out of it. It starts the execution or ends the execution of the current breakpoint.

How do I use F11 in Visual Studio?

In short, pressing F11 will take you to every line including your function body, but F10 allows to move from one line to the the immediate next line.

How do I enable debugging in VS Code?

To bring up the Run and Debug view, select the Run and Debug icon in the Activity Bar on the side of VS Code. You can also use the keyboard shortcut Ctrl+Shift+D. The Run and Debug view displays all information related to running and debugging and has a top bar with debugging commands and configuration settings.


2 Answers

For MacOS:

Go to System Preferences -> Keyboard -> Keyboard and check the box to invert the function key behavior / to choose standard function key behavior.

Go to System Preferences -> Keyboard -> Shortcuts and uncheck the "Show Desktop F11" option inside one of the submenus (Mission Control).

This worked for me on

  • Catalina 10.15.5
  • BigSur 11.3.1
like image 73
Thomas Eding Avatar answered Oct 26 '22 06:10

Thomas Eding


It is possible to change key bindings at

  1. Go to File > Preference > Keyboard Shortcuts (At the right side will be displayed keybindings.json file in %APPDATA%\Code\User).
  2. Add { "key": "f11", "command": "workbench.action.debug.stepInto", "when": "inDebugMode" } to that file.
like image 33
khayk Avatar answered Oct 26 '22 04:10

khayk