Console.print and Console.printLn are the primary debugging tools available in WMLScript. These functions are defined as follows:
Console.print(string)
Converts any value to a string and prints it to the SDK Phone Information window.
Console.printLn(string)
Converts any value to a string and prints it to the SDK Phone Information window, adding a new line to the end of the string. Use this function when you want each debug statement printed on a separate line in the Phone Information window.
Some examples of points at which you might add either of these functions to your WMLScript code include:
Whenever one or more variables are initialized or assigned values, particularly if the assignment takes place in a WML file.
Whenever your script code tests the value of a variable.
Whenever your script code assigns a new value to a variable.
Whenever your script loads a different WML deck or card.