[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Which development tools do you use ?
From:       John Gluck <jgluckca () home ! com>
Date:       2001-10-17 18:12:32
[Download RAW message or body]

Guillaume Laurent wrote:

> On Wednesday 17 October 2001 18:36, John Gluck wrote:
>
> > I thought GDB was pretty pitiful too until I read the GDB manual (Yeah, I
> > know reading manuals is for whimps :-> )
>
> Which is what I mean :-). The last thing I want to do when debugging is
> having to learn a complicated tool.

As processor get more complex and languges develop more features, the debug tools
naturally get more complex to be able to show the maximum info.

>
>
> > Anyway, GCC only puts out very limited debug info for C++ unless you add
> > the following compile switches  -g3 -gstabs+
>
> I read that on this mailing list a while ago and tried it, but didn't see any
> improvement. What difference is it supposed to make ?

One thing is if you use a class as a data member, you can examine the data member
class.
Also, if you have a pointer to a parent class, you can examine the parent.
You can also modify variables more easily.

>
>
> > that will give you much more debug info and make debugging much easier.
>
> Can you show me an example where this makes a difference ?
>
> > Also, GUI front ends don't give you access to all the GDB features.
>
> Again, this is what I mean :-). Debugging is definitely something for which a
> GUI is almost essential.
>

I find GUIs are helpful but I can certainly live without them.
You haven't lived till you've debugged by useing a frontpanel that give you
hardware access in binary and you single step by pussing a switch or modify memory
locations directly from the panel.  It's also great fun to patch you code by
toggleing instructions in in binary.

Then there's having a logic analyser without an emulator pod and you hook up
probes to the address and data busses to decode what's going on.

If you want maximum debugging, you have to roll up your sleeves and dig.

>
> --
> Guillaume
> http://www.telegraph-road.org
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

John

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic