Skip to content

service/dap: support target command in debug console #4077

@Lslightly

Description

@Lslightly

Currently, vscode-go does not have user interface for target follow-exec. So adding support to target follow-exec may help user control the debug process.

The proposed commands are just like terminal:

  1. dlv target list
  2. dlv target follow-exec [-on [regex]] [-off]

dlv switch is hard since it may cause inconsistency between debugger and frontend.

I have demos in vscode-go. The code is in https://github.com/Lslightly/delve/commits/dap-console-target. Should I create a PR or a drafted one?

Debug Console:

dlv-console.mp4

dlv follow-exec -off:

dlv-follow-exec-off.mp4

dlv follow-exec -on:

dlv-follow-exec-on.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions