Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

debugger

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debugger

Easily Debug Node Apps

  • 0.6.1
  • npm
  • Socket score

Version published
Weekly downloads
73
increased by43.14%
Maintainers
1
Weekly downloads
 
Created
Source

Overview

A work in progress. See Todos. Limitations:

  • Regular node.js app debugging only for now
  • OSX only for now (Pull Requests welcome)

Usage

  1. Install debugger

    npm install -g debugger
    
  2. To debug a script

    debugger your-script.js
    
  3. The Debugger App should now be open with devtools ready to go. NOTE: Right now it will set a breakpoint on the first line, there's a todo to make configure this with an command line argument

Credits

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

Todos

We're be extracting the debugger logic we made for remote debugging our robots into a reusable module.

  • Don't set a break point on startup, instead make it --debug-brk an option
  • Support debugging electron apps
  • Support remote debugging
    • Of node apps
    • Of Electron apps
  • Add Windows/Linux support
    • Add cross platform shortcuts for reload and dev tools toggle as in electron-debug
    • Make sure menu shows proper platform shortcut
  • Checkout Chrome DevTools App to make sure this project has a unique value proposition.
  • Potentially add support for remote debugging over an ssh tunnel to make debugging an app on an arbitrary server easy

Contributing

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

    ln -s -f $("pwd")/bin/debugger.js /usr/local/bin/debugger

FAQs

Package last updated on 07 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc