Problem
Currently, rust-minidump relies on file paths embedded in the DMP file to locate executables and symbol files. This works well when decoding on the same machine where the dump was generated. However, on a different machine—even if the required artifacts exist—the tool fails to locate them because the paths differ.
In many workflows, build artifacts are preserved and shared across machines. A simple path replacement mechanism would allow decoding crashes on any machine without restructuring directories.
Proposed Solution
Introduce two new command-line arguments:
--symbolSourceDirToReplace <sourceDir>
--targetDir <targetDir>
These options will replace the prefix of symbol paths from the DMP file before lookup.
Example
Symbol path in DMP file:
C://some/user/path/myApp/foo/bar.pdb
Actual location on current machine:
D://some/other/path/foo/bar.pdb
Command:
rust-minidump ./crashDump.dmp --use-local-debuginfo --human \
--symbolSourceDirToReplace C://some/user/path/myApp \
--targetDir D://some/other/path
This approach ensures seamless symbol resolution across machines with mirrored directory structures.
Problem
Currently, rust-minidump relies on file paths embedded in the DMP file to locate executables and symbol files. This works well when decoding on the same machine where the dump was generated. However, on a different machine—even if the required artifacts exist—the tool fails to locate them because the paths differ.
In many workflows, build artifacts are preserved and shared across machines. A simple path replacement mechanism would allow decoding crashes on any machine without restructuring directories.
Proposed Solution
Introduce two new command-line arguments:
--symbolSourceDirToReplace <sourceDir>--targetDir <targetDir>These options will replace the prefix of symbol paths from the DMP file before lookup.
Example
Symbol path in DMP file:
C://some/user/path/myApp/foo/bar.pdb
Actual location on current machine:
D://some/other/path/foo/bar.pdb
Command:
This approach ensures seamless symbol resolution across machines with mirrored directory structures.