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

VSCode: unbound breakpoints on ng serve - angular 14 #23383

Closed
1 of 15 tasks
prabh-62 opened this issue Jun 15, 2022 · 4 comments
Closed
1 of 15 tasks

VSCode: unbound breakpoints on ng serve - angular 14 #23383

prabh-62 opened this issue Jun 15, 2022 · 4 comments
Labels
needs: more info Reporter must clarify the issue

Comments

@prabh-62
Copy link

prabh-62 commented Jun 15, 2022

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes

Description

When debugging a newly generated application within an angular 14 workspace, breakpoints are unbound(set but ignored by VSCode)

🔬 Minimal Reproduction

  • > npx @angular/cli@14 new web-apps --create-application false --strict
  • > cd web-apps
  • > yarn ng generate app admin-console --routing --style css
  • Open this angular workspace in VSCode and set breakpoint on Line 9 of projects/admin-console/src/app/app.component.ts (any valid line)
  • Start debugging

🔥 Exception or Error

ng_14_breakpoint_vscode_unbound

🌍 Your Environment


Angular CLI: 14.1.0-next.1
Node: 18.3.0 (Unsupported)
Package Manager: npm 8.11.0 
OS: darwin arm64

Angular: 14.0.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1401.0-next.1
@angular-devkit/build-angular   14.1.0-next.1
@angular-devkit/core            14.1.0-next.1
@angular-devkit/schematics      14.1.0-next.1
@angular/cli                    14.1.0-next.1
@schematics/angular             14.1.0-next.1
rxjs                            7.5.5
typescript                      4.7.3
❯ code --version
1.68.1
30d9c6cd9483b2cc586687151bcbcd635f373630
arm64

vscode_version

mac_os_version

Anything else relevant?

@alan-agius4
Copy link
Collaborator

Unfortunately I am unable to replicate this locally.

One thing I noticed is that you are using an unsupported version of Node.js can you please try using an LTS version of Node.js (14 or 16).

@alan-agius4 alan-agius4 added the needs: more info Reporter must clarify the issue label Jun 16, 2022
@prabh-62
Copy link
Author

Thank you for the suggestion. I downgraded node to 16.15.1 and VS Code can hit the breakpoints now.

node_16_iterm

@alan-agius4
Copy link
Collaborator

Closing since Node.js 18 is not yet supported.

@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: more info Reporter must clarify the issue
Projects
None yet
Development

No branches or pull requests

2 participants