Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Using MacsBug

CONTENTS

Installing MacsBug

Useful MacsBug Commands

Additional Notes & Comments

MacsBug is Apple's assembly-level 680x0 and PowerPC debugger for Mac OS. It can be used to debug code running in most execution environments, from applications to drivers and everything in between. It is often used as a bug-reporting tool by many Mac OS software developers.

This Note is directed at quality assurance engineers who do not have any experience with MacsBug.


Installing MacsBug

MacsBug can be downloaded from http://developer.apple.com/tools/debuggers/MacsBug/. The minimal installation requires that you take the file called MacsBug and move it into the System Folder. You need to restart the computer after installing MacsBug.

MacsBug is currently installed on each computer in the ADC Compatibility Labs. When an application crashes it will generally activate MacsBug, which will appear as a white screen with mostly black text. You may manually bring up MacsBug by hitting both the apple and power-on keys in unison. If an application crashes and activates MacsBug, it is a good idea to create a Standard Log and restart the system.

Back to top

Useful MacsBug Commands

Here is a list of a few MacsBug commands that Mac OS system software developers find extremely useful while doing quality assurance.

STDLOG Standard Log will generate a text file on the desktop labeled "StdLog".
This file contains useful debugging information about the current state of the system and should be included with your bug report.

G POWER Use this command to Shut Down instead of restarting the system.

RS Restart unmounts all volumes and restarts the system.

RB Reboot restarts the system.

ES Escape to Shell will try to quit the current application and return you to the Finder.

HELP
Help will provide a list of help topics.

ESC Pressing the ESC key while you are in MacsBug will toggle the screen so you can see what was happening before MacsBug was activated.

Back to top

Additional Notes & Comments

It is recommended that you restart after a crash that activates MacsBug. Whenever an application crashes, the machine is left in an unstable state and may affect your testing.

The Standard Log that MacsBug generates contains debugging information that is useful to programmers and should be included in your bug reports. It is also a good idea to attach the steps you used to cause the crash so a programmer can retrace your steps.

Programmer oriented resources Non programmer oriented resources

Back to top


To contact us, please use the Contact Us page.
Updated: 10-August-2000



Choose your language: