How Do I ... : Test and debug my application : Test by printing results to the Transcript window
Test by printing results to the Transcript window
Run my applicationRun my applicationNo tips for this topicExample: Print to the TranscriptExample: Print to the TranscriptDebug my scriptsDebug 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.
Last modified date: 08/12/2019