Angular error logging prevents stackfraces from displaying properly #122870
Closed
Description
opened on May 2, 2021
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:
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:
- Clone https://github.com/maurei/visual-studio-debugging-angular-report
- Run
ng serve
- Attach debugger
- Notice the stack trace of the error that is thrown: it does not contain useful stacktraces
Activity