Easily Debug/Run Node/Electron apps
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
examples
resources
src
.gitignore
.npmignore
README.md
TODOS.md
debugger.html
package.json

README.md

Overview

Easily Debug Node and Electron renderer process scripts.

Usage

  1. Install debugger

    npm install -g debugger
    
  2. To debug a script or electron renderer web page

    debugger script.js
    

    or

    debugger index.html
    
  3. Press Command + R (OSX) or Control + R (Windows/Linux) to reload the script.

Contributing

  1. To make your global debugger command point to your local code. Run the following from the debugger source root folder:

     npm link .
    

Credits

  • Special thanks to Camilo Aguilar (c4milo/@c4milo) for releasing the debugger module name for this project's usage
  • electron for making desktop apps so easy to make
  • electron-prebuilt for making electron even easier to use in projects

Todos

  • Switch to using commander to get better command line instructions.
  • Add support for a switch to show the browserwindow for people who want to test code that requires a DOM and browser APIs.
  • Add support for -v to output the electron, v8, and node versions as well.
  • Add support for watching for changes to the script and auto reloading