GINO Graphics Suite - GINO v9.0  

gDebug

Syntax

[C/C++:]
void gDebug(GFILE *fp, int level);
[F90:]
subroutine gDebug(unit, level)
integer, intent(in) :: unit,level

Arguments

fp
GINO-C file pointer

unit
Fortran 90 File unit

level
The level of information to be output

= GSTANDARD, Lists all device driver entries
= GEXTRA, Lists all device driver entries and extra monitoring

Description

The routine gDebug() traces the flow of information in GINO. It sits between GINO and a device driver and writes to the specified GINO file unit all the information that passes back and forth. As far as possible, gDebug's output mirrors the calls to GINO routines in the user's program.

The routine gDebug() must be called prior to the call to the device driver's nomination routine. Note that gDebug() makes an implicit call to gCloseDevice() and gExtendSeg().

The debug file should be opened prior to calling this routine using the function gFopen(), with the file pointer or unit number passed as appropriate. The file is neither opened or closed by the gDebug() routine itself.

Both debug levels monitor the data sent to and received from the currently nominated device driver, but the GEXTRA level also monitors changes to windowing and masking state as well as the line mode and state of transformation current at each gOpenSeg() and gCloseSeg().

Control of gDebug() output can be made with gSetDebugSwitch().

See Also

gDebug Usage
gSetDebugSwitch
gCloseDevice
gFopen