npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

thedebugger

v1.1.0

Published

thedebugger is an improved debugging experience for Node.js, enabled by Chrome DevTools

Downloads

2

Readme

thedebugger

Build Status NPM thedebugger package

thedebugger is an improved debugging experience for Node.js, enabled by Chrome DevTools

Installation

Compatibility: thedebugger requires Node >=8.0.0. It works best with Node >=10.

# global install with npm:
npm install -g thedebugger


# alternatively, with yarn:
yarn global add thedebugger

Global installation may fail with different permission errors, you can find help in this thread.

Windows users: Installation may fail on Windows during compilation the native dependencies. The following command may help: npm install -g windows-build-tools

Local install

If you want thedebugger available from an npm script (eg. npm run debug runs thedebugger index.js), you can install it as a development dependency:

# local install with npm:
npm install --save-dev thedebugger


# alternatively, with yarn:
yarn add thedebugger --dev

You can then set up an npm script. In this case, thedebugger will not be available in your system path.

Getting Started

You can start debugging your Node.js application using one of the following ways:

  • Use thedebugger instead of the node command
thedebugger server.js

# Alternatively, you can prepend `thedebugger`
thedebugger node server.js
  • Prepend thedebugger in front of any other binary
# If you use some other binary, just prepend `thedebugger`
## npm run unit
thedebugger npm run unit

# Debug any globally installed package
## mocha
thedebugger mocha

# To use a local binary, use `npx` and prepend before it
thedebugger npx mocha
  • Launch thedebugger as a standalone application
    • Then, debug any npm script from your package.json, e.g. unit tests
# cd to your project folder (with a package.json)
thedebugger .
# In Sources panel > "NPM Scripts" sidebar, click the selected "Run" button 
  • Run any node command from within thedebugger's integrated terminal and thedebugger will connect automatically
  • Run any open script source by using 'Run this script' context menu item, thedebugger will connect automatically as well

What can I do?

thedebugger has some powerful features exclusively for Node.js:

  1. Child processes are detected and attached to.
  2. You can place breakpoints before the modules are required.
  3. You can edit your files within the UI. On Ctrl-S/Cmd-S, DevTools will save the changes to disk.
  4. By default, thedebugger blackboxes all scripts outside current working directory to improve focus. This includes node internal libraries (like _stream_wrap.js, async_hooks.js, fs.js) This behaviour may be changed by "Blackbox anything outside working dir" setting.

In addition, you can use all the DevTools functionality that you've used in typical Node debugging:

  • breakpoint debugging, async stacks (AKA long stack traces), async stepping, etc...
  • console (top-level await, object inspection, advanced filtering)
  • eager evaluation in console (requires Node >= 10)
  • JS sampling profiler
  • memory profiler

Screenshot

image

Contributing

Check out contributing guide to get an overview of thedebugger development.