Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"You don't have an extension for debugging 'JSON with Comments'" warning when debugging VS Code theme

I generated the files necessary for creating a color theme in VS Code. I did this with the generator-code node package.

My file structure is as follows

When I run VS Code's debugger, I get this warning that prevents the debugger from running.

Here are the contents of my launch.json file for reference:

{
  "version": "0.2.0",
  "configurations": [
      {
          "name": "Extension",
          "type": "extensionHost",
          "request": "launch",
          "runtimeExecutable": "${execPath}",
          "args": [
              "--extensionDevelopmentPath=${workspaceFolder}"
          ],
          "outFiles": [
              "${workspaceFolder}/out/**/*.js"
          ],
      }
  ]
}

In case you're wondering what I'm expecting to happen when I run the debugger, here's the moment in the tutorial I was following where I ran into this problem.

Edit: Well, I evaded the problem somehow by deleting the files and starting over. I'm not sure what was causing the problem before.

like image 246
Ksoup Avatar asked Jul 17 '21 23:07

Ksoup


People also ask

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.

How do I run a JSON code in Visual Studio?

In Visual Studio Code, use shortcut Ctrl + Shift + P to open the Command Palette and type Open launch. json . And it will open the launch.

How do I use Chrome debugger extension in VS Code?

To debug any project in either Chrome or Microsoft Edge, all you need to do is to start a session by pressing F5 or activating the debug icon in the menu bar and selecting “Run and debug”. Alternatively, you can also use the Visual Studio Code command palette and run the “Debug: Open Link” command.


Video Answer


1 Answers

This popup only appears for me when trying to launch the debugger while having the launch.json or tasks.json file open. Switching to one of my test files and launching the debugger fixes it

like image 102
Ethan Fischer Avatar answered Sep 20 '22 06:09

Ethan Fischer