From the course: Learning Visual Studio Code
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Creating launch configurations - Visual Studio Code Tutorial
From the course: Learning Visual Studio Code
Creating launch configurations
Launch configurations lets you specify precisely how your program should run in the debugger. They support efficient development by helping you quickly and repeatedly debug your code with the configuration you require. Launch configurations are stored in JSON format in a file named launch.json. By default, the file is created inside the .vscode folder in your project. I'm going to create one to debug this server.js file I created earlier. I'm already on the run and debug panel, and there's a link near the top of it to create a new launch.json file. I'll click it and I'm prompted at the top to select a debugger. I'll choose Node.js. The file is then created and opened in the editor. Like the other configuration files we've looked at in the course, this one is also in the JSON format. You can store multiple configurations as objects in the configurations array that starts on Line 6. The first three properties on this default configuration are required for all configurations. The type is…