Skip to content

The debug console is slow when run without debug with pwa-node #1068

Closed
@catan271

Description

Describe 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

  1. Open project folder in VSCode
    (here is my project folder zip https://drive.google.com/file/d/14jR3RJWnLKFZezmMir6qSSOMUIqGMd6s/view?usp=sharing)
  2. Run without debug (ctrl + F5)
  3. Open postman
  4. Make a GET request to localhost:3000/users/45645132131 or any id string after "users/"
  5. Come back to VSCode and wait for the id to be logged in debug console
  6. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions