Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 994 Bytes

vscode-debug-firefox.md

File metadata and controls

57 lines (39 loc) · 994 Bytes

vscode debug firefox


pre

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

install a webserver to serve your index.htm

npm install -g local-web-server

run local webserver

ws -p 80 --spa index.html

run firefox in debug mode

firefox --start-debugger-server http://localhost

from vscode

add prerequisite addon Debugger for Firefox

from debug choose Launch localhost

test

set some breakpoint in your js