This is a prototype debugger written without any XUL and based on React and Redux.
npm install
- Install Dependenciesnpm run start-firefox
- Start Firefoxnpm start
- Start Debugger
npm test
- Run tests headlesslynpm run mocha-server
- Run tests in the browser
cypress run
- Run tests headlesslycypress open
- Run tests in the browser
Notes:
- Firefox needs to be open and listening on port 6080 before the tests are run. You can start Firefox on the right port with this command
npm run start-firefox
. - Cypress needs to be installed before tests can be run. When you run cypress the first time, you will be prompted to install it.
cypress install
.
npm run lint
- Run CSS and JS linternpm run lint-css
- Run CSS linternpm run lint-js
- Run JS linter
npm run storybook
- Open Storybook
You can create a development.local.json
for local user settings in public/js/configs
.
clientLogging
- set totrue
to see client logs
If you'd like to connect an existing Firefox browser to debugger.html, you can press shift+F2
to open the developer toolbar and type listen 6080
into the developer toolbar console.
Sometimes you will want to open firefox manually.
- open a specific version of firefox
- use a different profile
It is easy to open firefox with the firefox-bin
script:
$ /Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin -P development --start-debugger-server 6080
- --start-debugger-server 6080 Start Firefox in remote debugging mode.
- -P development parameter specifies a profile to use:
Firefox needs to some settings configured in about:config
to remotely connect to devtools:
devtools.debugger.remote-enabled
totrue
devtools.chrome.enabled
totrue
devtools.debugger.prompt-connection
tofalse