You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/goDebugConfiguration: clean up launch config snippets
Merged the package debug/test configuration snippets into
one 'auto' snippet. I also learned that goDebugConfiguration
translates 'auto' to 'debug'/'test' depending on the open
file in the editor, not based on the 'program' attribute,
which is good.
For 'program', recommend fileDirname, instead of file
for package mode.
Change-Id: Ia6d4fb502cc904f13ea096a61f8888ba7d92db57
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/308493
Trust: Hyang-Ah Hana Kim <[email protected]>
Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
TryBot-Result: kokoro <[email protected]>
Reviewed-by: Suzy Mueller <[email protected]>
Copy file name to clipboardExpand all lines: docs/debugging.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ Below are the available sample configurations:
174
174
175
175
#### Debug the current file (`Go: Launch file`)
176
176
177
-
Recall that `${file}` refers to the currently opened file (see [Using VS Code Variables](#using-vs-code-variables)).
177
+
Recall that `${file}` refers to the currently opened file (see [Using VS Code Variables](#using-vs-code-variables)). For debugging a package that consists with multiple files, use `${fileDirname}` instead.
178
178
179
179
```json5
180
180
{
@@ -206,7 +206,8 @@ Recall that `${workspaceFolder}` refers to the current workspace (see [Using VS
206
206
207
207
#### Debug all tests in the given package (`Go: Launch test package`)
208
208
209
-
Recall that `${workspaceFolder}` refers to the current workspace (see [Using VS Code Variables](#using-vs-code-variables)).
209
+
A package is a collection of source files in the same directory that are compiled together.
210
+
Recall that `${fileDirname}` refers to the directory of the open file (see [Using VS Code Variables](#using-vs-code-variables)).
0 commit comments