New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't debug nodemon twice #61517
Comments
Thanks for the nice steps, I can reproduce it. So when vscode sends a terminate or disconnect request to debug adapter the debugee exit event should not contain the |
It seems like the DA might not be handling terminate/disconnect correctly, but it works in 1.28 and nothing has changed in the DA. Did anything change with how those events are sent? |
@roblourens it migth be that before we were not keeping inactive session which we do now as part of the refactoring to show multiple debug consoles. |
Yeah I need to fix it on the DA side. But I'm confused, the terminate request doesn't seem to work in 1.28. The DA sends |
Oh it works if I disable Live Share |
I thought that Live Share issue was fixed? Do you know anything about that? Very frustrating when debugging this stuff. |
…equested a disconnect or terminate
Following the steps in the original issue, I still see this error
{
"type": "node",
"request": "launch",
"name": "nodemon",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/nodemon",
"program": "${workspaceFolder}/out/app.js",
"restart": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}, and console.log('hello!')
I get two errors:
and then:
|
This is a different issue when the program terminates cleanly, it's not the typical nodemon scenario, tbh I think this scenario has never worked quite right. We can tell that nodemon is not going to restart when we get to here: https://github.com/Microsoft/vscode-node-debug2/blob/master/src/nodeDebugAdapter.ts#L307 |
Actually, I don't think I want to change this. You can still restart debugging if you change the program again within 10s. If you wait more than 10s, the DA times out and you can press F5 again. I am not sure how to improve this because the DA doesn't have anything to attach to when the app is not running, and we don't have UI or a concept of the DA waiting forever for nodemon to start again... I don't remember users complaining about this either, so I'm leaving it alone. |
The text was updated successfully, but these errors were encountered: