code-debug icon indicating copy to clipboard operation
code-debug copied to clipboard

Not working with debug information from other machine

Open cbourgeois opened this issue 6 years ago • 2 comments

Hi,

When part of the debug information is coming from another machine, the debugging session relies on the full path of the file and cannot find the correct sources in the current project. This can often happen when doing a distributed compilation or reusing debugging information already provided.

cbourgeois avatar Nov 12 '18 22:11 cbourgeois

any suggestion how to fix this? I would assume it doesn't work with plain GDB/LLDB in the console either.

WebFreak001 avatar Nov 13 '18 13:11 WebFreak001

Indeed it does not work, one possibility would be to match the filename provided by gdb with files available in the loaded directory and choose the most relevant by choosing the longest common path ?

cbourgeois avatar Nov 13 '18 15:11 cbourgeois