Debugging in Visual Studio Code

Debugging is a core feature of Visual Studio Code. In this tutorial, we will show you how to run and debug a program in VS Code. We'll take a tour of the Run and Debug view, explore some debugging features, and end by setting a breakpoint.

Tip: To use the debugging features demonstrated in this video for Node.js, you will need to first install Node.js. To follow along with the Python portion of the video, you'll need to install Python.

Here's the next video we recommend: Version Control

Pick another video from the list: Introductory Videos

Video outline

  • Debugging that "just works".
  • Run a sample Node.js app.
  • Use a launch.json configuration file.
  • Single file debugging.
  • Set a breakpoint.

Next video