From 72c77b1c30fccead4c8d03e9bb9fbe071c156ace Mon Sep 17 00:00:00 2001 From: Philippe Blain Date: Thu, 15 Dec 2022 03:02:06 -0500 Subject: [PATCH] Documentation/faq: Correct commands in substitute-path section (#3222) The text of the substitute-path section in the FAQ ("Can not set breakpoints or see source listing in a complicated debugging environment") mentions the command 'config help substitute-path', but 'help' is not a valid argument to the 'config' command. Use 'help config' instead, which does mention 'substitute-path' and how to set it. Also, the command to list source files is 'sources', not 'source'. Fix that. --- Documentation/faq.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/faq.md b/Documentation/faq.md index 97a67a293d..d63543fc2c 100644 --- a/Documentation/faq.md +++ b/Documentation/faq.md @@ -103,8 +103,8 @@ Command failed: open /path/to/the/mainfile.go: no such file or directory This is not a bug. The Go compiler embeds the paths of source files into the executable so that debuggers, including Delve, can use them. Doing any of the things listed above will prevent this feature from working seamlessly. -The substitute-path feature can be used to solve this problem, see `config help substitute-path` or the `substitutePath` option in launch.json. +The substitute-path feature can be used to solve this problem, see `help config` or the `substitutePath` option in launch.json. -The `source` command could also be useful in troubleshooting this problem, it shows the list of file paths that has been embedded by the compiler into the executable. +The `sources` command could also be useful in troubleshooting this problem, it shows the list of file paths that has been embedded by the compiler into the executable. If you still think this is a bug in Delve and not a configuration problem, open an [issue](https://github.com/go-delve/delve/issues), filling the issue template and including the logs produced by delve with the options `--log --log-output=rpc,dap`.