*BSD News Article 81809


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!arclight.uoregon.edu!nntp.primenet.com!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!public.x.org!kaleb
From: kaleb@x.org (Kaleb KEITHLEY)
Newsgroups: comp.unix.programmer,comp.unix.bsd.bsdi.misc
Subject: Re: How to debug C programs
Date: 27 Oct 96 11:55:27 GMT
Organization: X Consortium
Lines: 14
Message-ID: <kaleb.846417327@exalt>
References: <54plmi$rce@hoho.quake.net>
NNTP-Posting-Host: exalt.x.org
X-Newsreader: NN version 6.5.0 #8 (NOV)
Xref: euryale.cc.adfa.oz.au comp.unix.programmer:45420 comp.unix.bsd.bsdi.misc:5197

ian@idk.com (Ian Kettleborough) writes:

>C is not new to me, have used it for years in a PC (DOS) 
>envirmonent. There are great debuggers there when things don't go 
>quite right. How and what does one use on BSDI to debug a C program 
>other than a lot of printf's!!

`man -k debug` or `apropos debug` offer several hints.

gdb is the specific answer.

--

Kaleb KEITHLEY