DEBUG

 

Syntax:

       Then: DEBUG ON

       Then: DEBUG OFF

 

Version Ref:  3.x

Description:

Turns the runtime debugger on or off from within a processing table.

 

Examples:

One way to use the command is to set a flag. For example, if you type "Y" in a debug-on yes/ no field, the program turns it on:

 

@wef12   If:
       Then: input db(1,yesno) "Debugger on?"
         If: db eq "Y"
       Then: debug on
       Then: end

 

IMPORTANT: The debugger will continue to operate until you turn it off. For example:

 

@wef13   If:
       Then: debug off; end

Test certain parts of a "live" system. in such a way that only you see the debugger, others work normally.

 

@wlf14   If: @id eq "root"

       Then: debug on

Turn on the debugger if a value is not "right".

         If: aa ne "right value"

       Then: debug on

 

Version 6.0.00

debug now will accept long variables as break points.

     The scope of a longvar is different from a normal dummy field. Technically, longvar is not at a true global scope, and isn't available in the automatic processing table.  Declaring it 'g' only will work  across records, but not tables, declaring it GLOBAL will fix that, but it has to be matched with an 

EXTERN in the other prc table.
There are also enhancements to debug: DEBUG ON FIELD PA DEBUG ON FIELD Invoice_Total DEBUG ON LINE 1211