Re: Debugger for C programming?

2001-10-06 Thread Joe Bouchard
On Tue, Oct 02, 2001 at 11:32:40PM +1000, [EMAIL PROTECTED] wrote:
 Is there a good debugger for C programming.  You know, the kind of thing
 that lets you step through a line at a time running your program and put
 watches on variables etc.

Another debugger is xxgdb.  I used to use it a lot.

-- 

Thank you,
Joe Bouchard

Powered by Debian GNU/Linux



Debugger for C programming?

2001-10-02 Thread mdevin
Is there a good debugger for C programming.  You know, the kind of thing
that lets you step through a line at a time running your program and put
watches on variables etc.

I am doing an assignment for Uni, and have been just adding printf
statements in my code to check variable values etc.  But others who are
using a Micro$oft compiler say they have the benefit of being able to
step through a line at a time.

Now I know that Linux rules for C programming, so what do all you
programmers use to debug your code?

Thanks.
Mark.



Re: Debugger for C programming?

2001-10-02 Thread martin f krafft
also sprach [EMAIL PROTECTED] (on Tue, 02 Oct 2001 11:32:40PM +1000):
 Is there a good debugger for C programming.  You know, the kind of thing
 that lets you step through a line at a time running your program and put
 watches on variables etc.

gdb. and watch it kick micro$oft's butt. it takes some while to get
used to it, but in the end it's so much more powerful - after all,
micro$oft copied from it...

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^.*|tr * mailto:; [EMAIL PROTECTED]
-- 
out of my mind. back in five minutes.


pgpjjURIfoK44.pgp
Description: PGP signature


Re: Debugger for C programming?

2001-10-02 Thread Jordi S . Bunster
On Tue, Oct 02, 2001 at 11:32:40PM +1000, [EMAIL PROTECTED] wrote:

 Is there a good debugger for C programming.  You know, the kind of thing
 that lets you step through a line at a time running your program and put
 watches on variables etc.

gdb is the usually used debugger under Linux. There's a nice graphical
user interface for it, called ddd. It will compile under most Unices
also ... give it a try. There're packages for Debian and
everything. Just apt-get. And have a nice day.

-- Jsb



Re: Debugger for C programming?

2001-10-02 Thread John Toon
On Tuesday 02 October 2001 14:32 pm, [EMAIL PROTECTED] wrote:
 Is there a good debugger for C programming.  You know, the kind of thing
 that lets you step through a line at a time running your program and put
 watches on variables etc.

 I am doing an assignment for Uni, and have been just adding printf
 statements in my code to check variable values etc.  But others who are
 using a Micro$oft compiler say they have the benefit of being able to
 step through a line at a time.

 Now I know that Linux rules for C programming, so what do all you
 programmers use to debug your code?

 Thanks.
 Mark.

Well, there is gcc for C compilation... and gdb for debugging! 

The GNU Debugger should offer all the functionality you need for C/C++ 
programming. There are numerous graphical front-ends available too, such as 
DDD and KDbg.

Of course, since you're (presumably) using Debian, don't forget about the 
wonderful tool apt-cache:

apt-cache search debugger 

will give you a nice list of packages.

John.



Re: Debugger for C programming?

2001-10-02 Thread dman
On Tue, Oct 02, 2001 at 03:38:17PM +0200, martin f krafft wrote:
| also sprach [EMAIL PROTECTED] (on Tue, 02 Oct 2001 11:32:40PM +1000):
|  Is there a good debugger for C programming.  You know, the kind of thing
|  that lets you step through a line at a time running your program and put
|  watches on variables etc.
| 
| gdb. and watch it kick micro$oft's butt. it takes some while to get
| used to it, but in the end it's so much more powerful - after all,
| micro$oft copied from it...

I've never used MSVS so I can't comment on their tools, but I have
seen 'gvd' (GNU Visual Debugger) and it looks really nice.  It is a
GTK+ gui front-end to gdb (you still get a shell frame to interact
directly with gdb if you want).  I like it better than DDD because I
like GTK+ better than Motif.

-D



Re: Debugger for C programming?

2001-10-02 Thread Daniel Toffetti
 Is there a good debugger for C programming.  You know, the kind of
 thing that lets you step through a line at a time running your
 program and put watches on variables etc.

 Now I know that Linux rules for C programming, so what do all you
 programmers use to debug your code?

 Thanks.
 Mark.

I want to add another questions on this topic, does gdb supports 
debugging a running daemon? And what if the daemon loads a dinamic 
library? Newbie questions, of course, so please details are welcomed.

Thanks !

Daniel
-- 
There is no spoon... - The Matrix



Re: Debugger for C programming?

2001-10-02 Thread Peter Jay Salzman
begin: Daniel Toffetti [EMAIL PROTECTED] quote
  Is there a good debugger for C programming.  You know, the kind of
  thing that lets you step through a line at a time running your
  program and put watches on variables etc.
 
  Now I know that Linux rules for C programming, so what do all you
  programmers use to debug your code?
 
  Thanks.
  Mark.
 
 I want to add another questions on this topic, does gdb supports 
 debugging a running daemon? And what if the daemon loads a dinamic 
 library? Newbie questions, of course, so please details are welcomed.
 
yes, in fact, you can debug a running process using gdb.

i wrote a gdb tutorial which talks about this very topic

www.dirac.org/linux/gdb

the tutorial is lynx friendly.

pete

-- 
You may not use the Software in connection with any site that disparages
Microsoft, MSN, MSNBC, Expedia, or their products or services ...
-- Clause from license for FrontPage 2002



Re: Debugger for C programming?

2001-10-02 Thread Rafael Sasaki
On Tue, Oct 02, 2001 at 03:38:17PM +0200, martin f krafft wrote:
 also sprach [EMAIL PROTECTED] (on Tue, 02 Oct 2001 11:32:40PM +1000):
  Is there a good debugger for C programming.  You know, the kind of thing
  that lets you step through a line at a time running your program and put
  watches on variables etc.
 
 gdb. and watch it kick micro$oft's butt. it takes some while to get
 used to it, but in the end it's so much more powerful - after all,
 micro$oft copied from it...
 

Yes, indeed you will have what you want in gdb. But as you are
comparing it to Windows it`s better you know somethings. The
gdb itself doesn`t show you the code when it`s stepping through it.
It shows just the line it breaks at. To see all the code you can
run the gdb from emacs (F10 t 0). It will split your window and
show the gdb running in one and the code with a pointer to the line
it is executing in the other. It`s much better than any tool I tried
in Windows.
  Just one more thing. Don`t forget to compile your code with the
option -g or the gdb won`t be able to show you the code or to set
a breakpoints on functions.

HTH,
  Rafael Sasaki



Re: Debugger for C programming?

2001-10-02 Thread Noah Meyerhans
On Tue, Oct 02, 2001 at 11:32:40PM +1000, [EMAIL PROTECTED] wrote:
 Is there a good debugger for C programming.  You know, the kind of thing
 that lets you step through a line at a time running your program and put
 watches on variables etc.

If you want a nice GUI, check out DDD (apt-cache search ddd).

It uses GDB as a backend, which many here have already praised.  It adds
a nice UI to it, though, which helps with the learning curve.  I know
that for years debugging was the one thing I really needed a GUI for.

noah

-- 
 ___
| Web: http://web.morgul.net/~frodo/
| PGP Public Key: http://web.morgul.net/~frodo/mail.html 


pgpUt9IyVPbCe.pgp
Description: PGP signature


Fw: Re: Debugger for C programming?

2001-10-02 Thread Sean Morgan
On Tue, 2 Oct 2001 23:32:40 +1000
[EMAIL PROTECTED] wrote:

 Is there a good debugger for C programming.  You know, the kind of thing
 that lets you step through a line at a time running your program and put
 watches on variables etc.
 
 I am doing an assignment for Uni, and have been just adding printf
 statements in my code to check variable values etc.  But others who are
 using a Micro$oft compiler say they have the benefit of being able to
 step through a line at a time.
 
 Now I know that Linux rules for C programming, so what do all you
 programmers use to debug your code?

Check out Anjuta (apt-get install anjuta), excellent IDE for C classes and 
such.  It integrates GDB and has neat stuff like tool tips showing correct 
formats for function arguments.



Re: Debugger for C programming?

2001-10-02 Thread mdevin
On Tue, Oct 02, 2001 at 09:09:44AM -0700, Peter Jay Salzman wrote:
 begin: Daniel Toffetti [EMAIL PROTECTED] quote
   Is there a good debugger for C programming.  You know, the kind of
   thing that lets you step through a line at a time running your
   program and put watches on variables etc.
  
   Now I know that Linux rules for C programming, so what do all you
   programmers use to debug your code?
  
   Thanks.
   Mark.
  
  I want to add another questions on this topic, does gdb supports 
  debugging a running daemon? And what if the daemon loads a dinamic 
  library? Newbie questions, of course, so please details are welcomed.
  
 yes, in fact, you can debug a running process using gdb.
 
 i wrote a gdb tutorial which talks about this very topic
 
   www.dirac.org/linux/gdb
 
 the tutorial is lynx friendly.
 
 pete

Thanks to all who responded.  And thanks Pete for your tutorial.  I am
having a look at it now.  And I already had gdb, but didn't know :)

ps. great that your tutorial is lynx friendly.

Thanks.

Mark.