Generate VSCode configuration for selected Bazel C++ targets
Project description
configure-vscode-for-bazel
If you want to work with C++ Bazel targets in VS Code, you can use configure-vscode-for-bazel to generate a VS Code configuration.
This tool supports generating:
.vscode/launch.jsonandtasks.jsonfiles that contain selected targets for debugging and compiling in VS Code and- a
compile_commands.jsonfile using bazel-compile-commands-extractor for selected targets.
To generate these for a defined set of targets, run
uvx configure-vscode-for-bazel //path/to/your/target/...
This will be forwarded to a bazel query listing all cc_binary and cc_test targets.
Then, when you go to VSCode -> Run and Debug (Ctrl+Shift+D) you'll be able to select an executable.
By pressing ▶ Start Debugging (F5), you'll trigger a bazel build command and start debugging the executable.
The latter is provided by C/C++ Microsoft extension.
Make sure you compile with debug symbols (--compilation_mode=dbg) enabled.
You can pass your Bazel flags to this tool with --additional-debug-arg.
In addition, a .vscode/BUILD.bazel file will be created and bazel-compile-commands-**extractor** run to create a compile_commands.json in the workspace root.
See the usage documentation for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file configure_vscode_for_bazel-0.3.0.tar.gz.
File metadata
- Download URL: configure_vscode_for_bazel-0.3.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2bfaba5ea00d5bfe4a70bcc791685492b1bda9d5fe9fa848dcc4298136fc4c2
|
|
| MD5 |
8ba31eaa6a68307b275e85a24424c2f9
|
|
| BLAKE2b-256 |
a8f4fb65746220571a71ffbe8d9158f8ee248ab1fcb2dfe4e43ec180291fd577
|
Provenance
The following attestation bundles were made for configure_vscode_for_bazel-0.3.0.tar.gz:
Publisher:
publish-configure-vscode-for-bazel.yml on hofbi/dev-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
configure_vscode_for_bazel-0.3.0.tar.gz -
Subject digest:
f2bfaba5ea00d5bfe4a70bcc791685492b1bda9d5fe9fa848dcc4298136fc4c2 - Sigstore transparency entry: 1203181875
- Sigstore integration time:
-
Permalink:
hofbi/dev-tools@0bb6f46c31ee236af725d83fee232b94fad5cf4b -
Branch / Tag:
refs/tags/configure-vscode-for-bazel-0.3.0 - Owner: https://github.com/hofbi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-configure-vscode-for-bazel.yml@0bb6f46c31ee236af725d83fee232b94fad5cf4b -
Trigger Event:
push
-
Statement type:
File details
Details for the file configure_vscode_for_bazel-0.3.0-py3-none-any.whl.
File metadata
- Download URL: configure_vscode_for_bazel-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e50e6460dcfe9054e3c8f74f7975b7d8ad5837f76506d278d7743e87c1b2754c
|
|
| MD5 |
28e04c5a46016dbdb3594495e71921ed
|
|
| BLAKE2b-256 |
861aff32567fcd9d8d42a32fc41b7e2ab7df5387c926f19998b490dd6a4f26c8
|
Provenance
The following attestation bundles were made for configure_vscode_for_bazel-0.3.0-py3-none-any.whl:
Publisher:
publish-configure-vscode-for-bazel.yml on hofbi/dev-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
configure_vscode_for_bazel-0.3.0-py3-none-any.whl -
Subject digest:
e50e6460dcfe9054e3c8f74f7975b7d8ad5837f76506d278d7743e87c1b2754c - Sigstore transparency entry: 1203181922
- Sigstore integration time:
-
Permalink:
hofbi/dev-tools@0bb6f46c31ee236af725d83fee232b94fad5cf4b -
Branch / Tag:
refs/tags/configure-vscode-for-bazel-0.3.0 - Owner: https://github.com/hofbi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-configure-vscode-for-bazel.yml@0bb6f46c31ee236af725d83fee232b94fad5cf4b -
Trigger Event:
push
-
Statement type: