Open balloman opened 4 months ago
There's no such option.
One option is to use the node launch type which avoids using a terminal and should be overall faster
{
"name": "Next.js: debug full stack",
"type": "node",
"request": "launch",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"],
"internalConsoleOptions": "openOnSessionStart",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome",
},
}
I have a straightforward launch command:
npm run dev
but my terminal doesn't start fast enough for the debugger, so it executes the command before my shell is ready. This means I always have to manually run the command after to get it to work. Is there a way I can setup the launch task to wait like 500ms or something before running the command?Launch.json:
Terminal output: