-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launch or attach target using bazel run does not work #371
Comments
You've set up launch config to debug bazel itself, not the process it runs. lldb currently does not support debugging of child processes. You will need to locate the actual executable under bazel-bin// and launch it directly. |
Thanks Vadim, |
Cargo has a mode in which it logs compilation outputs in JSON format, which is parsed by CodeLLDB and used to locate the binary to launch. As far as I know, Bazel does not provide anything like that. This might help in your case. If you can find a way to inject a custom wrapper script into |
Specifically, try this:
|
Thanks Vadim, |
System Specs
Issue
We are using bazel to build our project and want to use this extension to debug inside the bazel sandbox.
In order to use the bazel sandbox the application needs to be launched using:
If we add this command to our launch.json the extension gives the following error:

If we however try to launch the application as a preLaunchTask (
run_test_test
) the extension can also not find the executable. Even using the${command:pickProcess}
we cannot select the process. I believe the picker is executed before the preLaunchTask ist finished.Can we add bazel support to launch our application directly using bazel?
launch.json
The text was updated successfully, but these errors were encountered: