%SYN_DEBUG

Identify if dbr is running in debug mode

WTSupported in traditional Synergy on Windows

 

USupported on UNIX
VSupported on OpenVMS
run = %SYN_DEBUG[(compile)]

Return value

run

1 if the program is running in debug mode or 0 if it’s not.

Arguments

compile

(optional) Set to 1 if the current routine was compiled in debug mode or 0 if it was not.

Discussion

%SYN_DEBUG identifies if a program is running in debug mode at runtime without having to translate the command line.

Examples

The following example returns a 1 (in run_mode) if the program is running in debug mode. Compile_mode is set to 1 if the current routine was compiled in debug mode.

run_mode = %SYN_DEBUG(compile_mode)