On this Page

    -debug

    Ask for debug output from suitably instrumented JavaScript code.

    Syntax

    -debug

    Description

    Sets a JavaScript variable called _DEBUG to true. This command-line option is intended to assist developers in debugging scripts. Using this you can conditionally have your _logf and _tracef messages written to the file specified by the -logfile and -trace command-line options.

    For example:

    if (_DEBUG) _message("iDataLen=%d",iDataLen);

    See Also

    Command Line Processing
    _logf
    _printf
    _tracef
    -logfile
    -trace
    Debugging Script