I need to launch a particular .js file for execution, in this way:
npx app.js launch.conf.js
//for execution of scriptsnpx app.js debug.conf.js
//for debugging the scripts
In my debug.conf.js contains
const config = {
debug: true,
execArgv: ['--inspect-brk'],
maxInstances: 1,
cucumberOpts: {
timeout: 30 * 1000 * 4,
},
};
exports.config =config
, When I Execute the 2nd command via CMD I'm able to debug using chromedev Tools debugger. but when I need to debug using the VS code Editor:this is present in my launch.json file:
"type": "node",
"name": "manager",
"request": "launch",
"protocol": "auto",
// "port": 5859,
"program": "${workspaceRoot}\\node_modules\\cdem\\bin\\app",
"execArgv": ["--inspect-brk"],
"args": [
"run wdio.debug.conf.js"
]
I keep getting the console op as: debugger attached, waiting for debugger to disconnect and the execution is not launched.
Can someone let me how to debug this app using VS Code?
npx jest ...
. I don't thinknpx app.js
makes sense. – Ribbon