DEBUG()

From Recital Documentation Wiki
Jump to: navigation, search

Purpose

Write debugging information messages to a text file

Syntax

DEBUG(<expC>)

See Also

ASSERT, DB_DEBUGDIR, DEBUG, SET ASSERTS, SET DEBUG


Description

If SET DEBUG is ON, the DEBUG() function allows debugging information messages specified in <expC> to be written to a text file in the current DB_DEBUGDIR directory. The text file is named debug + process ID + .txt. A copy of the latest debug file can also be found in the file debug.txt. By default, DEBUG is OFF.


Example

set debug on
 
// app1.prg
debug("program started by " + user())
//...
debug("program end")


Products

Recital, Recital Server