- pre
- install a webserver to serve your index.htm
- run local webserver
- run firefox in debug mode
- from vscode
- test
go to about:config
and set followings
devtools.debugger.remote-enabled : true
devtools.chrome.enabled : true
devtools.debugger.workers : true
devtools.debugger.prompt-connection : false
if want to debug non localhost add following
devtools.debugger.force-local : false
npm install -g local-web-server
ws -p 80 --spa index.html
firefox --start-debugger-server http://localhost
add prerequisite addon Debugger for Firefox
from debug choose Launch localhost
set some breakpoint in your js