From bb3babe41d7c5083293e2562093df9f5799fbf58 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Tue, 25 Jul 2017 16:04:15 -0400 Subject: [PATCH] Add note on debugging with Node inspector (#4120) --- docs/en/Troubleshooting.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/en/Troubleshooting.md b/docs/en/Troubleshooting.md index 31e4b444a010..3c5abd2ffbaf 100644 --- a/docs/en/Troubleshooting.md +++ b/docs/en/Troubleshooting.md @@ -13,6 +13,8 @@ Uh oh, something went wrong? Use this guide to resolve issues with Jest. Try using the debugging support built into Node. +> Note: Debugging support with Jest only supports `node debug`; it does yet support `node inspect` due to an upstream issue in [nodejs/node#7583](https://github.com/nodejs/node/issues/7593). Until the upstream issue is resolved, debugging with Node is not available when using Node v8.x. For more details, see [facebook/jest#1652](https://github.com/facebook/jest/issues/1652). + Place a `debugger;` statement in any of your tests, and then, in your project's directory, run: ```