Nuclide debugger with node and babel?

I am trying to use Nuclide / Atom to run and debug a unit test using Babel and ES6 + code. The launch configuration is as follows:

Nuclide settings

Node runs the unit test, as if I ran it from the command line and did not stop at my breakpoints. If I use the same command line call with -inspect-brk, I can properly debug (with source maps) from the chrome-devtools url in Chrome. Is there any way to make this work? I cannot “attach” since unit tests are and should be executed with a direct execution script.

+6
source share
1 answer

Nuclide V8 Inspector . --debug Nuclide. , , Node.js, Node.js 8.0.

PS. Node.js Nuclide - node --debug --debug-brk ..., Nuclide. , .

+2

All Articles