<commit_before># nodebug

This is a node command line utility that simplifies the process of debugging [node](https://github.com/joyent/node) scripts using [node-inspector](https://github.com/dannycoates/node-inspector).

## Installation

    npm install -g nodebug

## Usage

To debug a typical script:

    nodebug module.js

To debug unit tests (assuming [nodeunit](https://github.com/caolan/nodeunit) is installed):

    nodebug node_modules/nodeunit/bin/nodeunit test/module.js

## What it does

1. Executes the specified script with the node debugger attached (i.e. --debug-brk)
2. Starts node-inspector
3. Launches the debugging interface (i.e. Chrome)
<commit_msg>passing args to debugging script example in README<commit_after># nodebug

This is a node command line utility that simplifies the process of debugging [node](https://github.com/joyent/node) scripts using [node-inspector](https://github.com/dannycoates/node-inspector).

## Installation

    npm install -g nodebug

## Usage

To debug a typical script:

    nodebug module.js

To debug unit tests (assuming [nodeunit](https://github.com/caolan/nodeunit) is installed):

    nodebug node_modules/nodeunit/bin/nodeunit test/module.js

Need to pass options to your script?

	nodebug somescript.js -- -v -t --include who

[Optimist](https://github.com/substack/node-optimist), which powers nodebug's options, allows for any arguments after the `--` to remain untouched.

## What it does

1. Executes the specified script with the node debugger attached (i.e. --debug-brk)
2. Starts node-inspector
3. Launches the debugging interface (i.e. Chrome)

{'fraction_non_alphanumeric': 0.1021671826625387, 'fraction_numerical': 0.0037151702786377707, 'mean_word_length': 4.130158730158731, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4381602', 'n_tokens_mistral': 507, 'n_tokens_neox': 480, 'n_words': 170}