[slightly OT] remote debugging using Eclipse ?

I'd like to use eclipse as a debugger GUI attached to a gdbserver.

However, I would really love it if I did not have to put my projects in
eclipse (I don't use eclipse to do development). Is that even remotely
possible ?

Thanks for any help ...

[slightly OT] remote debugging using Eclipse ?

2012/3/29 Sylvain Joyeux <sylvain [dot] joyeux [..] ...>:
> I'd like to use eclipse as a debugger GUI attached to a gdbserver.
>
> However, I would really love it if I did not have to put my projects in
> eclipse (I don't use eclipse to do development). Is that even remotely
> possible ?

Yes, easy !

Just create a dummy hello world project. Then create a new debugging
session/configuration (click on the bug symbol) with the remote
debugging option. If you then point to the executable and debugging
symbols are compiled in, Eclipse will track down the source files and
open them nicely.

It's just a huge wrapper around gdb :-)

Peter

[slightly OT] remote debugging using Eclipse ?

On Thu, Mar 29, 2012 at 09:55:18PM +0100, Peter Soetens wrote:
> 2012/3/29 Sylvain Joyeux <sylvain [dot] joyeux [..] ...>:
> > I'd like to use eclipse as a debugger GUI attached to a gdbserver.
> >
> > However, I would really love it if I did not have to put my projects in
> > eclipse (I don't use eclipse to do development). Is that even remotely
> > possible ?
>
> Yes, easy !
>
> Just create a dummy hello world project. Then create a new debugging
> session/configuration (click on the bug symbol) with the remote
> debugging option. If you then point to the executable and debugging
> symbols are compiled in, Eclipse will track down the source files and
> open them nicely.
>
> It's just a huge wrapper around gdb :-)

If instead you preferred a light wrapper you could just use ddd...

Markus

[slightly OT] remote debugging using Eclipse ?

On 03/30/2012 09:26 AM, Markus Klotzbuecher wrote:
> On Thu, Mar 29, 2012 at 09:55:18PM +0100, Peter Soetens wrote:
>> 2012/3/29 Sylvain Joyeux<sylvain [dot] joyeux [..] ...>:
>>> I'd like to use eclipse as a debugger GUI attached to a gdbserver.
>>>
>>> However, I would really love it if I did not have to put my projects in
>>> eclipse (I don't use eclipse to do development). Is that even remotely
>>> possible ?
>>
>> Yes, easy !
>>
>> Just create a dummy hello world project. Then create a new debugging
>> session/configuration (click on the bug symbol) with the remote
>> debugging option. If you then point to the executable and debugging
>> symbols are compiled in, Eclipse will track down the source files and
>> open them nicely.
>>
>> It's just a huge wrapper around gdb :-)
>
> If instead you preferred a light wrapper you could just use ddd...
I already tried ddd ... and let's say that I found the general
interaction less than stellar.

I'll give Eclipse a try and see which one works best for me.

Sylvain

enkulator's picture

[slightly OT] remote debugging using Eclipse ?

I update the Eclipse from Helios to Indigo, but the problem persist.
Someone has the breakpoints enabled?

thanks in advance

enkulator's picture

[slightly OT] remote debugging using Eclipse ?

Dear friends, Thanks for the comments, .. I found the combination
configuration that enable my breakpoints after update to Indigo Eclipse IDE.

I put it here for future users that will have the same problems using not
remote debugger .

> Using Standard Create Propcess Launcher

>[Main]
C/C++ Application = <the deployer executable with absolute path>
Build configuration : Use Active

>[Arguments]
Program arguments = -s <your file to execute, ops, xml, etc.>

>[Debugger]
Debugger: gdb/mi
disable : "stop on startup at"

Best wishes and thanks to all,
Toni

On Fri, Mar 30, 2012 at 11:50, Antonio Castellon <
antonio [dot] castellon [..] ...> wrote:

> I update the Eclipse from Helios to Indigo, but the problem persist.
> Someone has the breakpoints enabled?
>
> thanks in advance

enkulator's picture

[slightly OT] remote debugging using Eclipse ?

Dear Peter & Sylvain,

I did it, but something was lost (error) for me, because the debug system
appears with errors, the breakpoints were not enabled.

My configuration is:

> Using GDB (DSF) Create Process Launcher.

>[Main]

[slightly OT] remote debugging using Eclipse ?

On Fri, Mar 30, 2012 at 7:47 AM, Antonio Castellon
<antonio [dot] castellon [..] ...> wrote:
> Dear Peter & Sylvain,
>
> I did it, but something was lost (error) for me, because the debug system
> appears with errors, the breakpoints were not enabled.

I remember as well that breakpoints are not enabled in the shared
libraries. There is some trick to it, to make them enable at the right
time. I don't remember exactly how, but you first need to have the
import statements work, such that the libraries are there. Then I
click on the enable/disable icon of each breakpoint (top left). Then
it gets properly installed. It's a bit cumbersome, but I think Eclipse
is missing a hook to detect that shared libraries are loaded and to
re-test for installing the breakpoints automatically.

>
> My configuration is:
>
>> Using GDB (DSF) Create Process Launcher.
>
>>[Main]
>  --- C/C++ Application: /<my_path_to_orocos>/deployer-gnulinux
>  --- Build Configuration : Use Active (and Use Workspace settings selected)
>
>>[Arguments]
>  --- Program arguments: -s init.xml
>
>>[Debugger]
>  --- Unselect "Stop on startup at"
>
> Someone knows what is wrong? Someone could enligthen me?

You didn't mention your Eclipse version. Be sure to be on the latest release...

Peter

enkulator's picture

[slightly OT] remote debugging using Eclipse ?

Thanks Peter for your help,

Then my memory was break, because I remember to do it time ago...but
perhaps I dreamt with it and it was never a reality. :-)

My version is :

Version: Helios Service Release 2
Build id: 20110218-0911

In other point, I don't understand it ... what is the sense to launch as a
debug a component in Orocos if we can stop and watch some variables in
runtime?

Best regards,
Toni

On Fri, Mar 30, 2012 at 09:02, Peter Soetens <peter [..] ...>wrote:

> On Fri, Mar 30, 2012 at 7:47 AM, Antonio Castellon
> <antonio [dot] castellon [..] ...> wrote:
> > Dear Peter & Sylvain,
> >
> > I did it, but something was lost (error) for me, because the debug system
> > appears with errors, the breakpoints were not enabled.
>
> I remember as well that breakpoints are not enabled in the shared
> libraries. There is some trick to it, to make them enable at the right
> time. I don't remember exactly how, but you first need to have the
> import statements work, such that the libraries are there. Then I
> click on the enable/disable icon of each breakpoint (top left). Then
> it gets properly installed. It's a bit cumbersome, but I think Eclipse
> is missing a hook to detect that shared libraries are loaded and to
> re-test for installing the breakpoints automatically.
>
> >
> > My configuration is:
> >
> >> Using GDB (DSF) Create Process Launcher.
> >
> >>[Main]
> > --- C/C++ Application: /<my_path_to_orocos>/deployer-gnulinux
> > --- Build Configuration : Use Active (and Use Workspace settings
> selected)
> >
> >>[Arguments]
> > --- Program arguments: -s init.xml
> >
> >>[Debugger]
> > --- Unselect "Stop on startup at"
> >
> > Someone knows what is wrong? Someone could enligthen me?
>
> You didn't mention your Eclipse version. Be sure to be on the latest
> release...
>
> Peter
>

[slightly OT] remote debugging using Eclipse ?

> Version: Helios Service Release 2
> Build id: 20110218-0911

>>
>> You didn't mention your Eclipse version. Be sure to be on the latest
>> release...
>>
>> Peter
>

+1 with Peter... get the Indigo version of Eclipse IDE for C/C++ Developers.

http://www.eclipse.org/downloads/