EpicGamesExt / raddebugger

A native, user-mode, multi-process, graphical debugger.
MIT License
3.44k stars 175 forks source link

Varying root of relative paths #334

Open forksnd opened 4 days ago

forksnd commented 4 days ago

In the .raddbg_project file, some relative paths (like target.executable) are calculated from the path in which the .raddbg_project file is located while other paths (like file_path_map.dest) seem to be calculated from the present working directory. Uniformity in this would be good -- ideally, all relative paths should be calculated from the path of the .raddbg_project file.

ryanfleury commented 4 days ago

Currently, file_path_maps should not have any path transformations applied to them. You can use relative or absolute paths and they should simply be preserved how you input them (unlike some other things which are written as relative to the user/project file). Are you seeing different behavior?

forksnd commented 2 days ago

Imagine a folder structure like:

A
|-B
   |-a.exe
|-C
  |-D
  |-E
    |-a.raddbg_project

When I launch raddbg, the working directory is A. To launch a.exe, I have to add the target.executable as ../../B/a.exe in the project file (since this path is relative to the project file). But to map A/C/D as C:/src, the file_path_map.dest has to be set as C/D (since it seems to be relative to the working directory).