#DEBUG (toggle debug generation) 

Top  Previous  Next

 

#DEBUG( value )

#DEBUG

Toggles debug generation on and off.

value

A symbol containing zero (0) or one(1). When zero, debug generation is turned off. When one, debug generation is turned on.

The #DEBUG statement toggles debug generation on and off, and overrides the Debug Generation setting in the Application Options dialog. When this is checked, #DEBUG controls the specific sections to output to the text file, so the file can be restricted to a manageable size.

Example:

#SET(%DebugSet,1)

#DEBUG(%DebugSet)    #!Set debug generation on

IF Action = 1        #<!If adding a record

 SomeVariable = InitVariable

END

#SET(%DebugSet,0)

#DEBUG(%DebugSet)    #!Set debug generation off