Progress
Embedded SQL-92
Guide and Reference


Use the +G Option to Insert Debug Statements

The +G option directs the precompiler to insert debug print statements in the generated C Language source program. When you specify +G, the +V and +K options are set automatically.

This ESQLC command produces a client.c source file with debug statements in the source. The precompiler also lists the commands it is executing (+V), and the intermediate files are kept (+K):

> esqlc +G client.pc 

This is an excerpt from a generated program where +G is specified:

   . 
   . 
   . 
#define PROGRESS_DEBUG(x) printf("%s\n", x) 
#define PROGRESS_DBG(x) printf("%s"), x 
   . 
   . 
   . 

This is an excerpt from the generated client.c program when you do not specify the +G option. Verbose mode (+V) is not enabled and intermediate files are not kept (+K):

   . 
   . 
   . 
#define PROGRESS_DEBUG(x) 
#define PROGRESS_DBG(x) 
   . 
   . 
   . 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095