The debug console is slow when run without debug with pwa-node
See original GitHub issueDescribe the bug I have just found that the new JavaScript debugger is slow when I launch Node.JS app. The default configuration for Node.js is
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\src\\index.js"
}
The debug console do logging with long delay, like this video: https://drive.google.com/file/d/1w6EEpYfDrv67RhKYm7aghf9Spi6kvBm9/view?usp=sharing
But when I change the type to node:
"type": "node"
the debug console run way faster:
https://drive.google.com/file/d/1OGeFpXrAPj2KspMwnbvPf6SVufHgRooh/view?usp=sharing
To reproduce
- Open project folder in VSCode (here is my project folder zip https://drive.google.com/file/d/14jR3RJWnLKFZezmMir6qSSOMUIqGMd6s/view?usp=sharing)
- Run without debug (
ctrl
+F5
) - Open postman
- Make a GET request to
localhost:3000/users/45645132131
or any id string after “users/” - Come back to VSCode and wait for the id to be logged in debug console
- In lauch.json, change
"type": "node"
and do the same steps above then see the difference in those to debugger
VSCode version: 1.59.0 (user) stable Windows 10 64bit NodeJS version: 14.16.0
Additional text: Unfortunately, Node (legacy) was deprecated and is going to be replaced by this new debugger (pwa-node). Is this a bug and will it be fixed in the future? I’m really sad to know that the simple Node debugger was to deprecate.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
Thanks, this’ll be fixed in the next nightly release on Monday (note that VS Code Insiders is required).
I have tried the nightly release and version 1.60.1 in vscode insider. The bug has been fixed. Hope to see it fixed in the stable version of vscode.