Skip to content

Commit eef6df6

Browse files
Update docs/howto/debuggers.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 45617bf commit eef6df6

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

docs/howto/debuggers.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,13 @@ For the remainder of this document, we assume you are using vscode.
140140
]
141141

142142
if bzl_args[1:]:
143-
# Append extra arguments (only applicable for 'run' mode).
144-
cmd.append("--")
145-
cmd.extend(bzl_args[1:])
143+
if args.mode == "run":
144+
# Append extra arguments for 'run' mode.
145+
cmd.append("--")
146+
cmd.extend(bzl_args[1:])
147+
elif args.mode == "test":
148+
# Append extra arguments for 'test' mode.
149+
cmd.extend([f"--test_arg={arg}" for arg in bzl_args[1:]])
146150

147151
env = {
148152
**os.environ.copy(),

0 commit comments

Comments
 (0)