Skip to content

debug: allow to configure substitutePath for debug test codelens and symlinks #1467

Closed
@hyangah

Description

@hyangah

Users who work in symlinked workspace need to use substitutePath (introduced as a fix for #622) because VSCode may use the symlinked path
while the Go command and Delve would use the original path.

This solution is not available for debug sessions started with the debug test codelens or
the debug session that started with a default configuration without launch.json (see #855)

A couple of options:

  • allow users to configure the default substitutePath settings (e.g. go.delveConfig ) in settings.json
  • try to detect this symlink case and auto-populate substitutePath automatically.
  • when this case is detected, the extension pops up a message to ask the user to configure the setting (or even update the settings value on behalf of the users).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions