D
D
dominy2021-07-09 18:06:47
Visual Studio Code
dominy, 2021-07-09 18:06:47

How to debug Visual Studio Code?

Hello, I'm trying to debug a simple html.html file with

<script>
  alert("1");
  console.log("2");
</script>

i put debugger for chrome from visual studio extensions and my launch.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-chrome",
      "request": "launch",
      "name": "Open html.html",
      "file": "c:\\Users\\Vektor\\Desktop\\New folder\\html.html"
    }
  ]
}

I calmly read the console in the add-on mode, but the debugger does not stop at the breakpoints and for some reason they are gray, please tell me how to debug in vs code :)
60e86604012d0068703498.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question