Skip to content

Better Support for Source Breakpoints when output is in different folders #6915

@MeirionHughes

Description

@MeirionHughes
  • VSCode Version: 1.1.1
  • OS Version: Windows 10

Steps to Reproduce:

Given:

./dist/foo.js
./dist/foo.map

./spec/foo.spec.js
./spec/foo.spec.map

./src/foo.ts
./src/foo.spec.ts
  1. In node launch config...
  2. set "outDir": "${workspaceRoot}/dist"
  3. set breakpoint in foo.ts
  4. set breakpoint in foo.spec.ts
  5. Run f5 (node debug)

then:
break-point will resolve for foo.ts
break-point will not resolve for foo.spec.ts

use-case:

I'm outputting source code to both a "dist" and "spec" folder; based on whether the file is *.spec.ts or not. As a result I have two locations for source mappings. In order to be able to assign breakpoints in both the .ts and .spec.ts files I must specify an outDir for VS Code's launch.json. Unfortunately, it does not support multiple directories so I can only pick one at the moment.

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions