Article View: comp.sys.next.programmer
Article #1479What does -DDEBUG actually do?
From: Dick Silbar
Date: Tue, 10 Nov 1992 18:49
Date: Tue, 10 Nov 1992 18:49
9 lines
1019 bytes
1019 bytes
I suspect this is very naive, but I looked all through the on-line manuals and found no answer to the subject question. The symbol table seems to be made by the -g option to cc. So what does -DDEBUG buy me? One answer MIGHT be (I am guessing) the ability to denote some lines in my C code (with 'DEBUG'?), such as my favorite printf statements, so that they are compiled when -DDEBUG is declared, but not when it is not. Dick Silbar (NeXTMail:silbar@whistler.lanl.gov)
Technical Details
Message-ID:
<10NOV199211495062@mpx2.lampf.lanl.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!gmd.de!jvnc.net!darwin.sura.net!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!lanl!mpx2.lampf.lanl.gov!silbarShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!gmd.de!jvnc.net!darwin.sura.net!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!lanl!mpx2.lampf.lanl.gov!silbar From: silbar@mpx2.lampf.lanl.gov (Dick Silbar) Subject: What does -DDEBUG actually do? Message-ID: <10NOV199211495062@mpx2.lampf.lanl.gov> News-Software: VAX/VMS VNEWS 1.41 Sender: news@newshost.lanl.gov Organization: LAMPF Data Analysis Center, Los Alamos, New Mexico Date: Tue, 10 Nov 1992 18:49:00 GMT Lines: 9