1

Hi There

In Visual Studio Code, I'm trying to debug/breakpoint a simple HTML file with some JavaScript.

I'm using VS.Code, installed with extension "Live server", and "Debugger for Chrome" to a Google Chrome browser.

The problem is I cannot set any breakpoint in VS.Code HTML-file nor at Chrome DevTools to inspect the code (Says: !--Code injected by live-server--), so is there a wise head, there can help me here ?

Cheers Jan

NB: I have looked at this topic, but it doesn't concern VS.Code: How to set breakpoints in inline Javascript in Google Chrome?

VS.Code - Chrome Browser

JanBorup
  • 5,337
  • 1
  • 29
  • 17

1 Answers1

2
"debug.allowBreakpointsEverywhere": true

Which will let you set breakpoints in any file, valid or not. I haven't tested it yet with HTML files but that might be a good workaround.

See also: https://github.com/Microsoft/vscode-chrome-debug/issues/122

freedomn-m
  • 27,664
  • 8
  • 35
  • 57
Flouse
  • 21
  • 5