Skip to content

vscode bazel debug c++ doesn't work #517

Answered by vadimcn
pyrl247 asked this question in Q&A
Discussion options

You must be logged in to vote

Bazel replaces the actual source location with "/proc/self/cwd" in order to achieve repeatable builds.
You'll need to add "sourceMap": { "/proc/self/cwd": "${workspaceFolder}" } to your launch configuration.

Edit: "sourceMap": { ".": "${workspaceFolder}" } on OSX and Windows.

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@pyrl247
Comment options

@vadimcn
Comment options

@pyrl247
Comment options

@vadimcn
Comment options

@pyrl247
Comment options

Answer selected by vadimcn
Comment options

You must be logged in to vote
1 reply
@vadimcn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #516 on September 15, 2021 06:15.