Overlapping breakpoints for remote debugging [message #34193] |
Fri, 07 November 2008 05:06  |
Eclipse User |
|
|
|
Hi,
I am facing an issue during remote debugging(based on DLTK Remote
Debugging Framework) of my script.
A copy of my script (say test.scr) is on a remote machine(unix) at
location say, /user/unix_project/test.scr
In my local machine (Windows), test.scr belongs to 2 projects - win_proj1
and win_proj.
I set a breakpoint on line 10 of /win_proj1/test.scr and on line 15 of
/win_proj2/test.scr
The Issue:
The breakpoint_set command sets the breakpoints at lines 10 and 15 for
script test.scr on unix machine.
Hence when we are debugging the script /win_proj1/test.scr it breaks at
line number 10 as well as 15.
Is there a way by which we can map local machine path to remote machine
path?
Thanks in Advance
Regards,
Sheela
|
|
|
|
|
Re: Overlapping breakpoints for remote debugging [message #34440 is a reply to message #34406] |
Fri, 14 November 2008 02:56  |
Eclipse User |
|
|
|
Sheela,
Working Directory is the path on the remote machine.
It works as follows: if the path of the breakpoint starts with the
project path, then project part is replaced with the working directory.
Example:
Remote path = /home/alex/remoteProject1
Workspace path = C:\MyWorkspace
Project path = C:\MyWorkspace\project1
breakpoint is set in the file
C:\MyWorkspace\project1\libs\core.rb
So resulting path should be
"/home/alex/remoteProject1" + "/libs/core.rb"
"Strip source folder(s)" should be set if you have source folders, so
your code actually starts in the C:\MyWorkspace\project1\src
So C:\MyWorkspace\project1\src\libs\core.rb will be mapped to the same
/home/alex/remoteProject1/libs/core.rb
Ideally this scheme should be extended to allow multiple local-to-remote
mappings, but it depends on how often it will used.
Regards,
Alex
Sheela wrote:
> Hi Alex,
> Thanks for your reply.
> I would be grateful if you could explain the usage of "Remote Source
> Mapping" option in remote debug configuration.
> I am working on eclipse3.4 + DLTK S1.0M2 (01 Oct 08 ). What should we
> enter in the "Working Directory" and what is the use of option "Strip
> source folder(s) from outgoing paths" ?
>
> Thanks in advance.
>
> Regards,
> Sheela
>
|
|
|
Powered by
FUDForum. Page generated in 0.65253 seconds