-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply config substitute-path
to break
and trace
#2203
Comments
This isn't a simple change, the argument of |
It would be nice if users can choose this to be applied to backends - e.g. rpc methods like |
Change FindLocation to apply substitute path rules to location expressions. Changes terminal to always print paths after applying substitutions. Implements go-delve#2203
Change FindLocation to apply substitute path rules to location expressions. Changes terminal to always print paths after applying substitutions. Implements go-delve#2203
Change FindLocation to apply substitute path rules to location expressions. Changes terminal to always print paths after applying substitutions. Implements go-delve#2203
Change FindLocation to apply substitute path rules to location expressions. Changes terminal to always print paths after applying substitutions. Implements go-delve#2203
Change FindLocation to apply substitute path rules to location expressions. Changes terminal to always print paths after applying substitutions. Implements go-delve#2203
Change FindLocation to apply substitute path rules to location expressions. Changes terminal to always print paths after applying substitutions. Implements #2203
Implemented by db93049 |
Similar to substitute-path configuration in the dlv cli, substitutePath in dap allows users to specify path mappings that are applied to the source files in stacktrace and breakpoint requests. Updates go-delve#2203
* service/dap: add substitutePath configuration Similar to substitute-path configuration in the dlv cli, substitutePath in dap allows users to specify path mappings that are applied to the source files in stacktrace and breakpoint requests. Updates #2203 * service/dap: refactor the startup of the fixture for attach Add a helper function for starting up a process to attach to. * service/dap: update substitute path tests for windows * service/dap: remove lines that should have been removed in merge * respond to comments on pr * move logging to helper functions * make test comments more clear * Add comments about absolute paths * fix log messages * clarify test comments * remove comment about absolute paths
* service/dap: add substitutePath configuration Similar to substitute-path configuration in the dlv cli, substitutePath in dap allows users to specify path mappings that are applied to the source files in stacktrace and breakpoint requests. Updates go-delve#2203 * service/dap: refactor the startup of the fixture for attach Add a helper function for starting up a process to attach to. * service/dap: update substitute path tests for windows * service/dap: remove lines that should have been removed in merge * respond to comments on pr * move logging to helper functions * make test comments more clear * Add comments about absolute paths * fix log messages * clarify test comments * remove comment about absolute paths
Change FindLocation to apply substitute path rules to location expressions. Changes terminal to always print paths after applying substitutions. Implements go-delve#2203
Currently
config substitute-path
rule applies only to source code retrieval, but does not apply tobreak
andtrace
.delve/pkg/config/config.go
Lines 231 to 232 in 71a460f
When users opt into use
config substitute-path
, they need to interact with the source code in different location and absolute file paths. They often incorrectly assume the rule would apply to other commands. Please consider expanding the scope of path substitution.Also, I noticed that the
list
or source code visualization uses the substitute path only to retrieve the source code. It keeps using the original path in display. If this feature request is accepted, changing that with the substituted path will be desirable for consistency.The text was updated successfully, but these errors were encountered: