WMLScript Developer's Guide

[Cover] [Previous Section] [Next Section] [Index]

Current chapter: Chapter 10 - Debugging WMLScripts
Section 54 out of 57 total sections , Section 3 out of 4 sections in this chapter


Using Console.print and Console.printLn

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:


[Cover] [Previous Section] [Next Section] [Index]


Part Number DKDS-41-002, UP.SDK Release 4.1, December 2000

Copyright © 1994-2000 Openwave Systems Inc. All rights reserved.
Please send comments and questions to sdk-doc-comments@openwave.com.