Re: [gnome-love] debugger





2015-04-19 23:03 GMT-06:00 Germán Poo-Caamaño <gpoo gnome org>:
On Sun, 2015-04-19 at 22:14 -0600, julio wrote:
>
> On 19/04/2015 21:43, Germán Poo-Caamaño wrote:
> > On Sun, 2015-04-19 at 21:33 -0600, julio wrote:
> >> Hi, how are you?
> >>
> >> I am new to gnome and I am working on my first bug and fortunately I've
> >> received help from many developers, but I'm still not able to fix the
> >> bug :( . I have a general question: is there any tool or debugger that
> >> you would recommend to keep track of the application state?, I am used
> >> to set breakpoints and see variable's content and I know there is gdb
> >> but I think that maybe it is more for low level stuff (assembly), or
> >> maybe I am wrong and there are features I don't know about. I guess some
> >> of you could point out something that could help me with this  :).
> > You can use plain gdb or any UI built on top of gdb to trace a program.
> > Nemiver provides an UI for gdb.
> >
> > In order to see the symbols, install the packages with the debugging
> > information. For example, Evince (the document viewer) package in Ubuntu
> > is called 'evince', but there is also one called 'evince-dbg'. You the
> > latest one.
>
> Thank you Germán,
> I am running the program on the jhbuild environment and I could attach
> the debugger to the process gnome-photos :) is there any way to build
> the source code with debbuging symbols using jhbuild?

Jhbuild does it by default.  The opposite is to strip the symbols out of
them (which distros do to distribute binaries in order to save disk
space).

>From here I am guessing, as I am not seeing your screen, neither I know
how exactly you are debugging the program.

If it happens you stop follow into a library that does not have
debugging symbols, assembly is what you are going to obtain.  Remember,
that jhbuild tries to build what you need, not everything down in the
stack.

That said, I would try something like:

$ jhbuild shell
$ nemiver /path/to/jhbuild/bin/gnome-photos

replace 'nemiver' by the debugger interface of your preference.

--
Germán Poo-Caamaño
http://calcifer.org/

Great!
thank you very much, I'll work on that now :)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]