-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debug support in Test Explorer (#29)
Add debug support to the test explorer. When this feature is enabled (via `bazelbsp.debug.enabled` setting), an additional debug run option will appear on each test item. Overall flow: - When a debug button for a test case is clicked, run is trigged as usual, with added `additionalBazelParams` (now supported by bazel-bsp server). These flags are configurable based on `bazelbsp.debug.bazelFlags` and should include any flags needed to get Bazel to build and launch the target in debug mode. - As the build runs, messages are watched for a debug ready message. The pattern to watch for is configurable in `bazelbsp.debug.readyPattern`. - Finally, once the pattern is matched, the VS Code launch configuration is triggered. This allows use of an existing launch configuration in the workspace (which can be set via settings, workspace, launch.json, etc), configurable via `bazelbsp.debug.launchConfigName`. If any of the settings are not properly set, the run will still attempt to proceed but print a warning in the output.
- Loading branch information
Showing
8 changed files
with
412 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.