- Run this in the root of your workspace to find the target of
bazel-cpp-template
symlink that Bazel creates based. These symlinks are documented here:
readlink -n bazel-cpp-template
- Put the output of that command in launch.json's sourcemap section:
"sourceMap": {
"[output of readlink -n bazel-cpp-template]": "${workspaceFolder}/"
}
Example:
"sourceMap": {
"/private/var/tmp/_bazel_ari/asdfasdfasdfasdfasdfgadfgasdg/execroot/__main__": "${workspaceFolder}/"
}