Open In App

Debug Keyboard Shortcuts For Visual Studio Code

Last Updated : 30 Sep, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Efficient debugging is an essential skill for any developer, and Visual Studio Code offers powerful keyboard shortcuts to streamline the debugging process. Using debug keyboard shortcuts in Visual Studio Code allows you to quickly run, pause, and step through your code, making troubleshooting faster and more efficient.

In this guide, we'll explore the most useful debugging keyboard shortcuts that can enhance your workflow and help you debug your projects with ease.

1. F9 ⮕ Toggle breakpoint

This shortcut marks or removes a backing point in the code which is represented by a red dot in the form of that line of code. This helps check whether this line of code is executing properly or has any errors.

2. F5 ⮕ Start/Continue 

This is the shortcut to initiate a debugging session or continue the session if paused.

3. Shift+F5 ⮕ Stop 

This is the shortcut to stop the debug session.

4. 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.

5. F10 ⮕ Step over 

This shortcut is to step over a breakpoint. It simply won't run the next breakpoint or steps out of the debug session.

6. Ctrl+K Ctrl+I ⮕ Show hover 

This shortcut shows the hover window for the part of the code on which the cursor is present currently. The window is the same which shows some additional information that appears wherever that part is hovered over by the cursor.

Conclusion

Mastering these debugging keyboard shortcuts in Visual Studio Code can significantly improve your development workflow by reducing time spent on troubleshooting and debugging. With quick access to essential debug functions such as starting, pausing, and stepping through code, you can efficiently identify and fix issues in your projects, ultimately boosting productivity.


Next Article
Article Tags :

Similar Reads