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

docs: add instructions for debugging tests via terminal #2085

Merged
merged 4 commits into from Oct 7, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/guide/debugging.md
Expand Up @@ -4,6 +4,18 @@ title: Debugging | Guide

# Debugging

## Terminal

To debug a test file in your shell, add a `debugger` statement anywhere in your code, and then run `ndb`:

```sh
# install ndb globally
npm install -g ndb
joshnuss marked this conversation as resolved.
Show resolved Hide resolved
joshnuss marked this conversation as resolved.
Show resolved Hide resolved

# run tests with debugger enabled
ndb npm run test
```

## VSCode

To debug a test file in VSCode, create the following launch configuration.
Expand Down