mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 20:20:40 +08:00
config, terminal, command: Add substitute-path parameter to configuration file. (#640)
Allows to rewrite a source path stored in program's debug information, if the sources were moved to a different place between compilation and debugging.
This commit is contained in:
@ -1252,7 +1252,7 @@ func printcontextThread(t *Term, th *api.Thread) {
|
||||
}
|
||||
|
||||
func printfile(t *Term, filename string, line int, showArrow bool) error {
|
||||
file, err := os.Open(filename)
|
||||
file, err := os.Open(t.substitutePath(filename))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user