diff --git a/docs/guide/debugging.md b/docs/guide/debugging.md index 9fef01e8de30..5a19ee981884 100644 --- a/docs/guide/debugging.md +++ b/docs/guide/debugging.md @@ -4,6 +4,21 @@ title: Debugging | Guide # Debugging +## Terminal + +To debug a test file without an IDE, you can use [`ndb`](https://github.com/GoogleChromeLabs/ndb). Just add a `debugger` statement anywhere in your code, and then run `ndb`: + +```sh +# install ndb globally +npm install -g ndb + +# alternatively, with yarn +yarn global add ndb + +# run tests with debugger enabled +ndb npm run test +``` + ## VSCode To debug a test file in VSCode, create the following launch configuration.