Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] Setting source for remote debug

Hi Kyle,

The way the debugger works you need to source locally since Eclipse has no way of accessing it otherwise. The debugger actually consists of two parts, one part running in Eclipse, which handles things like marking the current line, setting breakpoint markers, etc. and the other running on the remote system which is controlling the target process. When the remote part reports the path of the source file, the Eclipse part tries to match the path with the location of the source file in the local project. There's something called a source locator that tries to do this mapping. This is supposed to work by default, but if you have very different paths on the remote and local projects then it may not be able to work it out. You could try creating your own mapping using the preference C++>Debug>Source Lookup Path and creating a Path Mapping.

HTH,
Greg



On Oct 5, 2018, at 7:59 PM, Keyal <afiftyfootjello@xxxxxxxxx> wrote:

Hi everyone, 
 
I'm trying to debug my parallel C++ project that is on a remote server. (It's a large numerical solver so it needs some horsepower to compile/run). I can attach to the executable and run it just fine, but I get two editor windows that have the respective messages:
 
- Cannot determine URI for '/home/user/subfolders.../main.cpp'
- main() main.cpp Source not found
 
Which seems oddly contradictory. I have a local and remote mirror of the code. The Eclipse project is pointed to the local code.
 
I thought I would just be able to set the source location in the Debug Configuration to the location of the source code on the remote server. That seems intuitive, but it looks like I'm only allowed to set it to local folders. If I set it to my local project source, I get the above errors.
 
I checked the mailing list archives going back about two years and didn’t see anything similar.
Any help appreciated.
 
-Kyle Cochran
_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-user


Back to the top