segment-boneyard / nightmare

A high-level browser automation library.
https://open.segment.com
19.55k stars 1.08k forks source link

vscode debugging nightmare - launch.json #1341

Open JarvisPrestidge opened 6 years ago

JarvisPrestidge commented 6 years ago

I'm using vscode, typescript and nightmarejs.

Since node v8, inspector debugging protocol has been recommended and legacy has been depreciated. I've just upgraded and can no longer debug my nightmare application. Are there any gotcha's when setting up the JS debugger in vscode launch.json options that one should know about when using the inspector protocol?

If someone could share their working config that would be amazing!

rr4 commented 6 years ago

Hi, that is wat i get: using Version 1.20.1 (1.20.1) node v6.10.3

(node:66497) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: "file" argument must be a non-empty string (node:66497) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

matthewmueller commented 6 years ago

Nightmare doesn't support being run inside electron. Is that what's happening here?