bazelbuild / vscode-bazel

Bazel support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=BazelBuild.vscode-bazel
Apache License 2.0
232 stars 76 forks source link

How to add breakpoint when “Build Target with Starlark Debugger” #349

Open oscarthecat opened 4 months ago

oscarthecat commented 4 months ago

i can't click on left side of BUILD.bazel file(current project) or .bzl file(source file in external dir) to add a breakpoint (red point) in vscode.

Build Target with Starlark Debugger runs ok, it just no stop because no breakpoints.

my vscode version 1.86.2 bazel plugin version 0.9.0 macos version 14.3.1 (23D60) bazel 6.2.1

how can i add breakpoint? thanks

cameron-martin commented 4 months ago

Adding breakpoints works okay for me, although I am running Linux and don't have access to a Mac machine. Do you have a reproducer for this?

Strum355 commented 3 months ago

Breakpoints dont appear to work in macros, from some quick experimentation it appears to only work inside rules