You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What paths are supposed to go in File Path Map?
I have my exe and pdb here: c:\build\.
The source code cpp files are here: c:\develop\code\
I assumed the exe path goes in Source Path and the cpp path goes in Destination Path.
Is that correct? Or maybe Source Path is for the source code path... not sure
At the moment my breakpoints are not being hit and I'm guessing this is why. Maybe I'm wrong about that though.
In a previous version I had the breakpoints working and I'm not sure what I did to break it.
Thanks
The text was updated successfully, but these errors were encountered:
The File Path Map is used to redirect paths which are referenced from within debug information, to a different local path. So for example, if I am debugging an executable which was built on another machine, and its debug info refers to a file D:/foo/bar/baz.c in its line info, but I have that file in C:/x/baz.c stored locally, the File Path Map allows me to redirect references to the former, to the latter. This will enable stepping/breakpoints in that relocated file.
Can you provide more information about how you're building & debugging? That should let me help with the breakpoints not working.
Launched and then paused (Halt all attached processes). I get a message Could not find "C:\build\main.cpp.
Press Find alternative....
Select C:\develop\code\main.cpp. (It would be nice if this interface could show somewhere a reminder of the file being looked for as it is blurred out behind it).
This opens the code and has the step cursor set. I can now step over, step into, step out fine. I can click next to the line number to set a breakpoint, but if I then Resume all processes, the breakpoint is not hit and it just runs normally.
Above I omitted defining the specfic <ARGS> used in the build to minimise the report as I thought they were all fairly standard and irrelevant. I'd missed that I used the cl flag /FC for full path diagnostics, but also /d1trimfile:%CD%\ to strip the current directory from the __FILE__ macro.
If I remove that flag the breakpoints work again, but my __FILE__ macro values are absolute.
Adarma
changed the title
File Path Map: Path Values
Breakpoints are broken when compiling with /FC /d1trimfile flags
Jan 6, 2025
Version: 0.9.14 ALPHA [b99e102]
What paths are supposed to go in
File Path Map
?I have my exe and pdb here:
c:\build\
.The source code cpp files are here:
c:\develop\code\
I assumed the exe path goes in
Source Path
and the cpp path goes inDestination Path
.Is that correct? Or maybe
Source Path
is for the source code path... not sureAt the moment my breakpoints are not being hit and I'm guessing this is why. Maybe I'm wrong about that though.
In a previous version I had the breakpoints working and I'm not sure what I did to break it.
Thanks
The text was updated successfully, but these errors were encountered: