Name
DebugPrint -- print to debug device (V2.0)
Formerly known as
DebugVal (V1.x) ; DebugStr (V1.x)

Synopsis
DebugPrint(...)
Function
This function prints all arguments you specify to the current debug device. This is usually your console window. You can specify as many arguments as you like and they may be of any type. If you pass multiple arguments to this function, they will be printed with a space to separate them.

DebugPrint() will also automatically append a newline character to the end of its output. If you don't want that, use DebugPrintNR() instead. See DebugPrintNR for details.

This function supersedes the DebugStr() and DebugVal() calls. They now simply point to this call.

This call can be disabled by specifying the ‘-nodebug’ console argument when running a script or applet. In that case, calling DebugPrint() will do nothing at all. See Console arguments for details.

Also note that when compiling an applet or executable, debugging will be automatically disabled unless you explicitly enable it by setting the EnableDebug tag to True in @OPTIONS. So if you have compiled an applet or executable and you see that DebugPrint() doesn't do anything, the reason is probably that debugging is disabled.

Inputs
...
at least one value to print to the debug device
Example
DebugPrint("The user entered", name$, "as his name and", age,
           "as his age!")

Show TOC