[vscode-go] extension: add followExec and followExecRegex options in launch request

0 views
Skip to first unread message

Hongxiang Jiang (Gerrit)

unread,
Dec 26, 2025, 9:42:05 PM (2 days ago) Dec 26
to Qingwei Li, Gerrit Bot, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Michael Knyszek, Go LUCI, Madeline Kalil, Gopher Robot, golang-co...@googlegroups.com

Hongxiang Jiang submitted the change

Change information

Commit message:
extension: add followExec and followExecRegex options in launch request

Add followExec and followExecRegex options in launch request in
launch.json. Before InitializedEvent is sent back from delve, followExec
and followExecRegex will be set in delve. If the program being
debugged spawns a new child process at the beginning and
breakpoints are set in source code line of child process, these
breakpoints will be hit and shown to the user.

Without these two options, although go-delve/delve#4078 provides
delve command to enable follow-exec in console, user have to
manually enable follow-exec in console each time launching the
debug session.

Fixes golang/vscode-go#3712
Change-Id: I6f759356851938547a5db35c39309899e0200428
GitHub-Last-Rev: c9f186cf7e206205b760925e9e52ed7b48e6c44b
GitHub-Pull-Request: golang/vscode-go#3840
Reviewed-by: Hongxiang Jiang <hxj...@golang.org>
Reviewed-by: Michael Knyszek <mkny...@google.com>
Files:
  • M docs/debugging.md
  • M extension/package.json
Change size: S
Delta: 2 files changed, 12 insertions(+), 0 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Michael Knyszek, +2 by Hongxiang Jiang
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: vscode-go
Gerrit-Branch: master
Gerrit-Change-Id: I6f759356851938547a5db35c39309899e0200428
Gerrit-Change-Number: 696795
Gerrit-PatchSet: 5
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-Reviewer: Hongxiang Jiang <hxj...@golang.org>
Gerrit-Reviewer: Madeline Kalil <mka...@google.com>
Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-CC: Qingwei Li <lqw332...@mail.ustc.edu.cn>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages