Ooker
Ooker16mo ago

VS Code's debugger terminates before finished

I notice that occasionally the debugger terminates at the middle of the running, or at least doesn't print out the rest of the log. It happens even with breakpoint. Is there any reason for this?
2 Replies
MrKleeblatt
MrKleeblatt16mo ago
Du you have --inspect-brk=127.0.0.1:9229 as an argument in your launch.json?
Leokuma
Leokuma16mo ago
Maybe the debugger session is ending before it has time to print to console? You could try to do a slow operation (like a while true) after your log call just to see if thats the problem. You can also try to save to a file instead of printing