seflless / debugger

Easily Debug/Run Node/Electron apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Easily Debug/Run Node/Electron apps


Languages

Language:JavaScript 88.6%Language:HTML 10.3%Language:Shell 1.1%