JavaScript Debugging Recipes

Visual Studio Code supports debugging of many languages and platforms via debuggers that are either built-in or contributed by extensions.

To make it easier to get started with debugging, we have made a collection of debugging "recipes" which contain the steps and configuration you need to set up debugging for your favorite platform. The recipes are in GitHub at https://github.com/microsoft/vscode-recipes.

Debug server-side JavaScript in Node.js

The Visual Studio Code editor supports debugging Node.js applications via the built-in Node.js debugger.

Node.js logo

Recipes:

Debug client-side JavaScript in Browsers

The Visual Studio Code editor supports debugging of JavaScript running in Microsoft Edge and Google Chrome.

JavaScript, Edge, and Chrome logo

You can read more about debugging browsers works in the Browser Debugging documentation.

Recipes:

Blog posts:

Electron - Debug Electron applications

The Visual Studio Code editor supports debugging Electron applications via the built-in JavaScript debugger.

electron logo

Recipes:

Next steps