microsoft / microsoft/vscode-js-debug

Breakpoints unbound, VSCode cannot find source maps

Open
#1,963 13 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

info-needed
Dominant language
TypeScript
Stars
2k
Forks
373
Avg merge
1d 9m
Merged PRs (30d)
6

Description

I am unable to get breakpoints working in VSCode when debugging a typescript, angular application. When I look at Debug Diagnostics, it does not find any source location, even though "sourceMap": true is set in the tsconfig.

image

tsconfig.json
image

launch.json
image

Errors in Debug Console:
image

Sources tab in Chrome Dev Tools:
image

If I set the breakpoint in Chrome Dev Tools or use the debugger statement in the typescript file, I am able to hit the breakpoint without an issue. How do I get the breakpoints to bind in the VSCode debugger?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided tsconfig.json and launch.json, then compare the Debug Diagnostics output with the Chrome DevTools Sources view and Debug Console errors. Done means the TypeScript source locations are found and breakpoints bind in the VSCode debugger for the reported Angular application.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript, vscode
Domain
devtools, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.