Re: debugger

Julio ordoƱez <[email protected]> Sun, 19 Apr 2015 23:15:38 -0600
Newsgroups gmane.comp.gnome.love
Message-ID <CALo4=7uwnxhaqdfwC8mNjTX2C_k1veqMmgG6pJzXezkj_bV0hA@mail.gmail.com>
--===============8810720285801582203==
Content-Type: multipart/alternative; boundary=089e01419e2a4d985e05142105bf

--089e01419e2a4d985e05142105bf
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

2015-04-19 23:03 GMT-06:00 Germ=C3=A1n Poo-Caama=C3=B1o <[email protected]>:

> On Sun, 2015-04-19 at 22:14 -0600, julio wrote:
> >
> > On 19/04/2015 21:43, Germ=C3=A1n Poo-Caama=C3=B1o 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 th=
e
> > >> bug :( . I have a general question: is there any tool or debugger th=
at
> > >> you would recommend to keep track of the application state?, I am us=
ed
> > >> to set breakpoints and see variable's content and I know there is gd=
b
> > >> 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 progra=
m.
> > > 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 th=
e
> > > latest one.
> >
> > Thank you Germ=C3=A1n,
> > 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=C3=A1n Poo-Caama=C3=B1o
> http://calcifer.org/
>
> Great!
thank you very much, I'll work on that now :)

--089e01419e2a4d985e05142105bf
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">2015-04-19 23:03 GMT-06:00 Germ=C3=A1n Poo-Caama=C3=B1o <span dir=3D"lt=
r">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</=
a>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .=
8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=3D"HOEnZb"><div=
 class=3D"h5">On Sun, 2015-04-19 at 22:14 -0600, julio wrote:<br>
&gt;<br>
&gt; On 19/04/2015 21:43, Germ=C3=A1n Poo-Caama=C3=B1o wrote:<br>
&gt; &gt; On Sun, 2015-04-19 at 21:33 -0600, julio wrote:<br>
&gt; &gt;&gt; Hi, how are you?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I am new to gnome and I am working on my first bug and fortun=
ately I&#39;ve<br>
&gt; &gt;&gt; received help from many developers, but I&#39;m still not abl=
e to fix the<br>
&gt; &gt;&gt; bug :( . I have a general question: is there any tool or debu=
gger that<br>
&gt; &gt;&gt; you would recommend to keep track of the application state?, =
I am used<br>
&gt; &gt;&gt; to set breakpoints and see variable&#39;s content and I know =
there is gdb<br>
&gt; &gt;&gt; but I think that maybe it is more for low level stuff (assemb=
ly), or<br>
&gt; &gt;&gt; maybe I am wrong and there are features I don&#39;t know abou=
t. I guess some<br>
&gt; &gt;&gt; of you could point out something that could help me with this=
=C2=A0 :).<br>
&gt; &gt; You can use plain gdb or any UI built on top of gdb to trace a pr=
ogram.<br>
&gt; &gt; Nemiver provides an UI for gdb.<br>
&gt; &gt;<br>
&gt; &gt; In order to see the symbols, install the packages with the debugg=
ing<br>
&gt; &gt; information. For example, Evince (the document viewer) package in=
 Ubuntu<br>
&gt; &gt; is called &#39;evince&#39;, but there is also one called &#39;evi=
nce-dbg&#39;. You the<br>
&gt; &gt; latest one.<br>
&gt;<br>
&gt; Thank you Germ=C3=A1n,<br>
&gt; I am running the program on the jhbuild environment and I could attach=
<br>
&gt; the debugger to the process gnome-photos :) is there any way to build<=
br>
&gt; the source code with debbuging symbols using jhbuild?<br>
<br>
</div></div>Jhbuild does it by default.=C2=A0 The opposite is to strip the =
symbols out of<br>
them (which distros do to distribute binaries in order to save disk<br>
space).<br>
<br>
From here I am guessing, as I am not seeing your screen, neither I know<br>
how exactly you are debugging the program.<br>
<br>
If it happens you stop follow into a library that does not have<br>
debugging symbols, assembly is what you are going to obtain.=C2=A0 Remember=
,<br>
that jhbuild tries to build what you need, not everything down in the<br>
stack.<br>
<br>
That said, I would try something like:<br>
<br>
$ jhbuild shell<br>
$ nemiver /path/to/jhbuild/bin/gnome-photos<br>
<br>
replace &#39;nemiver&#39; by the debugger interface of your preference.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
--<br>
Germ=C3=A1n Poo-Caama=C3=B1o<br>
<a href=3D"http://calcifer.org/" target=3D"_blank">http://calcifer.org/</a>=
<br>
<br>
</div></div></blockquote></div>Great! <br>thank you very much, I&#39;ll wor=
k on that now :)<br></div></div>

--089e01419e2a4d985e05142105bf--

--===============8810720285801582203==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gnome-love mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-love

--===============8810720285801582203==--