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
Du you have
--inspect-brk=127.0.0.1:9229
as an argument in your launch.json
?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