Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to debug a proC program

Re: How to debug a proC program

From: Mike Krolewski <mkrolewski_at_rosetta.org>
Date: Thu, 14 Dec 2000 19:20:04 GMT
Message-ID: <91b6gt$8rf$1@nnrp1.deja.com>

In article <9199mj$qf3$1_at_sunlight.pku.edu.cn>,   "±±´ó" <gzf_at_cstnet.net.cn> wrote:
> Does anyone debug this program.Help please.
> Or can anybody help me with debug the C code from Pro*C by Kdevelop
>
>

The basics are to compile the code using the appropriate debug flags. The proC files are obviously not in the final compile. However the resulting .c or .cpp files are sourced by the debugger. Any and all of the proC code eg "EXEC SQL .." will be in the final source code file but commented out. In addition, the code that the proC preprocessor added will be in the final source code file.

Generally speaking, don't debug the preprocessor generated code. Once in a massively great while, maybe never, it is wrong. I set breakpoints around this code. Look at the first statements after you calls to Oracle.

Everything else is pretty normal debugging.

--
Michael Krolewski
Rosetta Inpharmatics
mkrolewski_at_rosetta.org
              Usual disclaimers


Sent via Deja.com
http://www.deja.com/
Received on Thu Dec 14 2000 - 13:20:04 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US