CS 10, Fall 1997

Lab 6: Debugging HyperTalk


Outline


Assignment for the Next Lab

Review the control stuctures if-then-else and repeat loops (section 4.5).

Read pages 155-158 before next lab period, and write out answers to the review questions on p. 158. We will discuss these in the next class.


Lab 6 Instructions

  1. Open a copy of the 'No Account' stack.

  2. Review the HyperCard object hierarchy (section 4.6, figures 4.5 and 4.7). Normally a message will be passed up the hierarchy until it can be responded to. The send command allows you to side step the normal hierarchy and to direct a message to a particular object. Look at the "By ID" button's script. It uses a "TurnOn" message; where is this message intercepted?

  3. Use debugging tools to add a checkpoint to the "By ID" script and to watch the changing variable values as each command is executed one step at a time.

  4. Do lab exercise 5.2 on page 155.

If there is time, do exercise 16(a) on page 168. Otherwise, do it as a homework problem. It will give you good practice for doing the scripting problems in Homework 3.


Once you have written handlers for the problems of Part B of homework assignment 3, use the debugging tools to check that your program logic works correctly by adding checkpoints and watching the variables.