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"><<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</= a>></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> ><br> > On 19/04/2015 21:43, Germ=C3=A1n Poo-Caama=C3=B1o wrote:<br> > > On Sun, 2015-04-19 at 21:33 -0600, julio wrote:<br> > >> Hi, how are you?<br> > >><br> > >> I am new to gnome and I am working on my first bug and fortun= ately I've<br> > >> received help from many developers, but I'm still not abl= e to fix the<br> > >> bug :( . I have a general question: is there any tool or debu= gger that<br> > >> you would recommend to keep track of the application state?, = I am used<br> > >> to set breakpoints and see variable's content and I know = there is gdb<br> > >> but I think that maybe it is more for low level stuff (assemb= ly), or<br> > >> maybe I am wrong and there are features I don't know abou= t. I guess some<br> > >> of you could point out something that could help me with this= =C2=A0 :).<br> > > You can use plain gdb or any UI built on top of gdb to trace a pr= ogram.<br> > > Nemiver provides an UI for gdb.<br> > ><br> > > In order to see the symbols, install the packages with the debugg= ing<br> > > information. For example, Evince (the document viewer) package in= Ubuntu<br> > > is called 'evince', but there is also one called 'evi= nce-dbg'. You the<br> > > latest one.<br> ><br> > Thank you Germ=C3=A1n,<br> > I am running the program on the jhbuild environment and I could attach= <br> > the debugger to the process gnome-photos :) is there any way to build<= br> > 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 'nemiver' 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'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==--