[comp.sys.atari.st] Debugging Sozobon C Programs

rjw@cunixa.cc.columbia.edu (Ricky J Witter) (08/11/90)

OK, I've got Sozobon C set up (with gulam, of course).  I've written a
couple little programs to make sure it works.  Now, I run into some run
time errors.  So my question is:  what do you use to debug your
programs?  Is there something similar to dbx available on the ST?  Of
course, I'm most interested in hearing of PD/shareware debuggers, but
what do you experts out there recommend?  Thanks to all...

rick
______________________________________________________________________________
|o|					|				   |o|
|o|   Ricky Witter  			|         Mac Plus | Atari 1040 ST |o|
|o|   (rjw@cunixa.columbia.edu)		|  speed   7.8 Mhz | 8.0 Mhz       |o|
|o| 					|  screen 512 X 342| 640 X 400	   |o|
|o|   516 John Jay Hall			|  Midi?     Ha!   | in & out 	   |o|
|o|   Columbia University		|  color?   nope   | 512           |o|
|o|   (A division of Sony)		|  price:   $1200  | $800          |o|
|o|   New York, NY 10027                |  plus, my ST can emulate Mac! /\_|o|
|o|  _                __           /\   |  (IBM, too!)__       /\_     /  
   \/ \  /\_/\    _  /  \/\     /\/  \__  /\/\_  __  /  \/\   /   \/\_/
       \/     \__/ \/      \_/\/        \/     \/  \/      \_/


                           ( ( ( (  IN STEREO  ) ) ) )

                                 where available

steve@thelake.mn.org (Steve Yelvington) (08/11/90)

[In article <1990Aug11.032802.4683@cunixf.cc.columbia.edu>,
     rjw@cunixa.cc.columbia.edu (Ricky J Witter) writes ... ]

> OK, I've got Sozobon C set up (with gulam, of course).  I've written a
> couple little programs to make sure it works.  Now, I run into some run
> time errors.  So my question is:  what do you use to debug your
> programs?  Is there something similar to dbx available on the ST?  Of
> course, I'm most interested in hearing of PD/shareware debuggers, but
> what do you experts out there recommend?  Thanks to all...
> 
> rick

I use the brute-force method:


#define DEBUG(x)	x  /* x */

DEBUG(fprintf(stderr,"<<File %s Line %d>>\n",__FILE__,__LINE__));

et cetera.  You also could use the Sozobon debugger, sdb, available from
the Panarthea file server or by FTP from atari.archive.umich.edu. I have
not made use of it.
-- 
   Steve Yelvington at the (rain-replenished) lake in Minnesota
   steve@thelake.mn.org