Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document difference between mocha debug and mocha --debug #692

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ <h3 id="bail-option">-b, --bail</h3>
<h3 id="debug-option">-d, --debug</h3>


<p> Enables node&rsquo;s debugger support, this executes your script(s) with <code>node debug &lt;file ...&gt;</code> allowing you to step through code and break with the <strong>debugger</strong> statement.</p>
<p> Enables node&rsquo;s debugger support, this executes your script(s) with <code>node debug &lt;file ...&gt;</code> allowing you to step through code and break with the <strong>debugger</strong> statement (<code>mocha debug ...</code> will fire up node's built-in debug client, <code>mocha --debug ...</code> will allow you to use a different client, such as the WebKit Web Inspector).</p>

<h3 id="globals-option">--globals &lt;names&gt;</h3>

Expand Down Expand Up @@ -814,4 +814,4 @@ <h2 id="more-information">More information</h2>
<span>© 2011 TJ Holowaychuk. All rights reserved.</span>
</footer>
</body>
</html>
</html>
3 changes: 1 addition & 2 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Mocha is a feature-rich JavaScript test framework running on [node](http://nodejs.org) and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases. Hosted on [GitHub](http://github.com/visionmedia/mocha).

<h2 id="features">Features</h2>
Expand Down Expand Up @@ -302,7 +301,7 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal

<h3 id="debug-option">-d, --debug</h3>

Enables node's debugger support, this executes your script(s) with `node debug <file ...>` allowing you to step through code and break with the __debugger__ statement.
Enables node's debugger support, this executes your script(s) with `node debug <file ...>` allowing you to step through code and break with the __debugger__ statement (`mocha debug ...` will fire up node's built-in debug client, `mocha --debug ...` will allow you to use a different client, such as the WebKit Web Inspector).

<h3 id="globals-option">--globals &lt;names&gt;</h3>

Expand Down