Dashiell Rose Bark-Huss
Dashiell Rose Bark-Huss

Reputation: 2965

VSCode pausing where there is no breakpoint

VSCode keeps pausing on a file called hot module replacement which looks like it's a part of webpack.

vscode paused on if (me.hot.active) {

I have no break points at all.

enter image description here

Launch config

    {
      "type": "pwa-chrome",
      "request": "launch",
      "trace": true,
      "name": "Launch vscode not extension",
      "url": "http://localhost:3000",

      "webRoot": "${workspaceFolder}"
    }

How do I stop this?

Upvotes: 3

Views: 2872

Answers (2)

nikmor 5
nikmor 5

Reputation: 1

Make sure that in the launch.json file the line "stopAtEntry": false, exists. Mine was true so it paused for no reason.

Upvotes: 0

Turkey
Turkey

Reputation: 415

enter image description here

My problem was that my CALL STACK would say "Paused on pause",
when I had no breakpoints set up, and also no Exceptions were shown.

However, I think is is just bad UI in VSCode, because actually a code error is occurring.

When I resume processing by pressing the Play button ..

enter image description here

If I have the DEBUG CONSOLE open, then after I hit the Play button again to get past this alleged "Paused on pause" then an error inevitably does appear in the console.

enter image description here

Upvotes: 1

Related Questions