Skip to content

Angular error logging prevents stackfraces from displaying properly #122870

Closed
@maurei

Description

Describe the bug
I have been unable to get a debugging experience going on the way I envision it. This is occurring with a freshly generated angular app (ng new app-name, v11). I enabled sourcemap in launch.json, see repro.

The issue is that when errors are thrown, the output in debug console is not very helpful:

screenshot_vscode

Note that the file in which the error is thrown is main.js and clicking it doesn't lead anywhere. What I am expecting to have it the same in chrome devtools: where I get a correctly mapped stacktrace which links, in this case, to the app.component.ts file.

To Reproduce

  • VS Code Version: 1.55.2 (3c4e3df)
  • OS Version: macOS 10.15.7

Steps to Reproduce:

  1. Clone https://github.com/maurei/visual-studio-debugging-angular-report
  2. Run ng serve
  3. Attach debugger
  4. Notice the stack trace of the error that is thrown: it does not contain useful stacktraces

Activity

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

Metadata

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions