Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Overlapping breakpoints for remote debugging
Overlapping breakpoints for remote debugging [message #34193] Fri, 07 November 2008 10:06 Go to next message
Sheela is currently offline SheelaFriend
Messages: 52
Registered: July 2009
Member
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 #34372 is a reply to message #34193] Mon, 10 November 2008 12:19 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Sheela,

DLTK sends breakpoint_set commands for breakpoints from all projects. It
could be useful if there are dependencies between projects. Also in DLTK
1.0 it could map local project paths to the specified remote working
directory - there is "Remote Source Mapping" group in the launch
configuration tab.

The breakpoints are sent with the full URI, so if you debugger engine
compares full paths of the files it should work correctly. You can turn
on the DBGP logging on the DLTK side to check the paths in the
breakpoint_set commands.

If you need more help - please specify the DLTK version you use and the
commands from the DBGP log.

Regards,
Alex


Sheela wrote:
> 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 #34406 is a reply to message #34372] Fri, 14 November 2008 05:21 Go to previous messageGo to next message
Sheela is currently offline SheelaFriend
Messages: 52
Registered: July 2009
Member
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
Re: Overlapping breakpoints for remote debugging [message #34440 is a reply to message #34406] Fri, 14 November 2008 07:56 Go to previous message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
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
>
Previous Topic:[BUILD] I-I200811100931-200811100931
Next Topic:[BUILD] S-1.0M3-200811141020
Goto Forum:
  


Current Time: Thu Dec 05 03:22:56 GMT 2024

Powered by FUDForum. Page generated in 0.03000 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top