Skip to content
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

Javascript Debug Terminal hangs with nx serve my-backend with nx + nest.js after 1.56 #124060

Closed
jesse23 opened this issue May 17, 2021 · 11 comments
Assignees
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@jesse23
Copy link

jesse23 commented May 17, 2021

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.56
  • OS Version: macos 11.3.1
  • nrwl 12.1.0
  • nestjs 7.6.15

Steps to Reproduce:

  1. Start a Javascript Debug Terminal
  2. npx nx serve my-backend

Result:

  • debugger hangs with:
 ➜ npx nx serve my-backend                                                                                                                                       Mon May 17 17:11:56 2021
Debugger attached.

> nx run my-backend:serve 
Debugger attached.
Starting type checking service...
Using 14 workers with 2048MB memory limit
Debugger attached.
Debugger attached.
Debugger attached.
Debugger attached.
Type checking in progress...
Hash: 7f7ca48a79b89d4aa340
Built at: 05/17/2021 5:12:20 PM
Entrypoint main [big] = main.js main.js.map
chunk {main} main.js, main.js.map (main) 1.53 MiB [entry] [rendered]
  • After press Ctrl+C to terminate the process, some of the debugger processes are still alive:
    image
@jesse23
Copy link
Author

jesse23 commented May 17, 2021

  • It was working on last week, but after it gets upgrade automatically, it is start failing.
    • I am sure last week I was in 1.56.x since I've configured the terminal tab.
  • But I tired to roll it back to 1.56.1 and 1.56.0, neither of them works.
  • I tried to roll it back to 1.55. It works again.
    • When it works fine, looks it will attach to the main.js correctly...which is not happening in the not working case.

@connor4312
Copy link
Member

connor4312 commented May 18, 2021

Please collect a log on both versions so I can see the difference 🙂 For the debug terminal, you can do so using the following setting:

  "debug.javascript.terminalOptions": {
    "trace": true
  },

/jsDebugLogs

@jesse23
Copy link
Author

jesse23 commented May 18, 2021

Thx will try to update it before next Monday.

@jesse23
Copy link
Author

jesse23 commented May 23, 2021

Mailed the log. Thx!

@jesse23
Copy link
Author

jesse23 commented May 28, 2021

@connor4312 Sent another mail with Google drive link. Sorry for the late.

Have a nice holiday!

@connor4312
Copy link
Member

Thanks for the logs! This'll be fixed in the next nightly

@connor4312 connor4312 added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues and removed info-needed Issue requires more information from poster labels Jun 9, 2021
@connor4312 connor4312 added this to the June 2021 milestone Jun 9, 2021
@roblourens roblourens added the author-verification-requested Issues potentially verifiable by issue author label Jul 1, 2021
@rzhao271
Copy link
Contributor

rzhao271 commented Jul 2, 2021

@jesse23 has the issue been fixed for you with the nightly version of the extension?

@jesse23
Copy link
Author

jesse23 commented Jul 2, 2021

@rzhao271 @connor4312 Sorry didn't notice this author-verification-request status...

I installed vscode-js-debug nightly from store: (v2021.6.1117)

  • Now I got 2 JavaScript Debug Terminal option in create console..

image

  • I tried both with npx nx serve my-backend, both of them will hang in the same step...and have the same behavior.

I will see if an OOTB nx-nestjs project can reproduce this.

image

@connor4312
Copy link
Member

@jesse23 please do steps 1 and 2 here https://github.com/microsoft/vscode-js-debug#nightly-extension

@jesse23
Copy link
Author

jesse23 commented Jul 3, 2021

@connor4312 Thx....with steps 1 and 2:

  • Now there is only one JavaScript Debug Terminal.
  • Yes the issue has been fixed, it could start the service correctly.
  • Break point works fine.

Thanks again!!

@rzhao271 rzhao271 added z-author-verified verified Verification succeeded labels Jul 6, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants
@roblourens @jesse23 @connor4312 @rzhao271 and others