How Do I...


Test by printing results to the Transcript window

Run my application No tips for this topic Example: Print to the Transcript Debug my scripts

If your application is not returning the results that you want it to, one way to debug it is to print the results to the System Transcript window.

What code you use

To print to the System Transcript, you need to write some Smalltalk code. The code looks like the following:

Transcript cr; show: X printString.
 

X is the result (of type String) that you want to print to the System Transcript.

Where you place the code

You can add this code to existing scripts in your application, or to a script written solely to print a result to the System Transcript. You place it after the code which gets or calculates the result that you want to check.


[ Top of Page | Previous Page | Next Page | Table of Contents ]