ADC Home > Reference Library > Technical Q&As > Legacy Documents > Mac OS 9 & Earlier >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation.

Discipline startup, Documentation

Q: I need to know where to put the Discipline startup and how to set up MacsBug to ignore Discipline at the system level. Where is documentation for Discipline?

A: If you are using Discipline with MacsBug, and you install Discipline as an INIT, you should drag both Discipline and the Discipline startup file you want to use (either Lenient or Strict) into your System Folder (don't forget to restart the computer after doing this).

Since Discipline is turned off initially, it doesn't check trap calls until you turn it on by entering DSC ON in MacsBug. To have Discipline check only the toolbox calls your application makes, enter DSCA in MacsBug. To turn Discipline off, enter DSC OFF (or DSCA OFF) in MacsBug.

If you install Discipline as an application, drag Discipline and the Discipline startup file of your choice into any folder on your hard disk. You do not have to copy these files into your System Folder.

When you launch Discipline as an application, it may indicate that there is a problem with the Finder's method of accessing system calls. To avoid this, enter DSCA in MacsBug. To turn Discipline off, enter DSC OFF (or DSCA OFF) in MacsBug, or close it with Command + Q. If Discipline crashes, you must turn if off using DSC[A] OFF before you use the ES (Exit to Shell) command.

There is a chapter on Discipline in the MacsBug Reference and Dubugging Guide, which is available from APDA. You can find additional material on the Developer CD Tool Chest. There are also Release Notes for Discipline 2.0.2 on ETO 16.

Discipline has not been updated since 1991, and there are no plans to update it.

[May 01 1995]

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.