pub fn load_debug_program_with_sources(
root: &Path,
contract_name: &str,
environment: SourceMapEnvironment,
source_roots: &[PathBuf],
) -> SoldbResult<Option<DebugProgram>>Expand description
The same, also looking for sources in source_roots.
A compiler records the source paths it was given, which are relative to the directory the compilation ran in. When the artifacts are somewhere else entirely, that directory is the one thing the debugger cannot work out for itself, so a frontend passes it.