Miscellaneous Ramblings
MacsBug 6.6, Apple's Free 'Crash' Utility
Charles Moore - 1999.11.01 - Tip Jar
This week Apple released the final version of its Mac OS 9 compatible version of MacsBug App version 6.6. MacsBug also finally has its own, dedicated web page on the Apple Website, where you can go to get information on or download the latest MacsBug version.
MacsBug is an acronym for: Motorola Advanced Computer Systems deBUGger, and is Apple's assembly-le vel 680x0 and PowerPC debugger for the Mac OS. It is used by programmers to debug code running in most execution environments, from applications to drivers, and everything in between, and is often used as a bug-reporting tool by 3rd-party developers, as well as Mac OS system software developers.
However, MacsBug is also a very useful piece of software to have in your system folder, even if you are a programming dunce like me. The main thing I find MacsBug useful for is getting out of crashes and screen lockups so I can save work and restart in an orderly fashion, or even continue working without restarting if I'm pressed for time. Sometimes I will have programs crash to MacsBug three or four times a day, and still be able to carry on for days without restarting my computer. Without MacsBug, each of those crashes would have involved a hard restart and the necessity of restarting the 15-20 programs I keep running all the time as well.
When MacsBug is installed, instead of a bomb dialog box or an "unexpectedly quit" or "system error" message showing up when a program crashes, you are presented with a funny looking, DOS-like screen, which can provide you with a comprehensive explanation of the problem, such as illegal instruction" or "unimplemented trap" or somesuch at some address in some data space with other details you don't care about. That's usually not very helpful unless you understand programming code.
What is helpful is that you can type "es" (which stands for "ExitToShell") into an entry field, press return or enter, and quite often be transported back to the Finder where you will still be able to do stuff - if only save your work. The prudent user will then quit all running programs and restart, which is still a lot better than losing unsaved work in other programs in a force restart. The unprudent user like me will keep right on computing and wait until the memory heap gets so corrupted that even MacsBug won't get me out of it. However, no harm done usually. In MacsBug App 6.6, when you "es" (Exit to Shell) it now cleans up properly by patching ExitToShell.
If typing "es" doesn't work, you're no worse off, and will usually end up back in the MacsBug window. I usually try "es" two or three times, and if that does not produce the desired result, I resign myself to the dreary task of restarting, which can also be done from the MacsBug window by typing "rs" (which stands for guess what?) and pressing return or enter. You can also (almost always) bring up the MacsBug window at any time by pressing Command and PowerKey, even if things have frozen but MacsBug has not appeared of its own accord. Why would you want to do this?
Because the restart you get by pressing "rs" in MacsBug is different from the "Restart" command the Finder offers. The Finder's "Restart" command sends an Apple event to all programs, asking them to quit, turning off the hardware only when the Finder is all that's left. The MacsBug "rs" command tries to unmount all of your online volumes and then toggles the hardware power, so you'll lose any unsaved work in any application. The main advantage to "rs" over the Finder's "Restart" command (which is probably inaccessible anyway in a crash or freeze) is disk unmounting. If a disk isn't unmounted correctly, the Mac OS realizes that something is wrong and goes through a time-consuming verification cycle next time the disk is mounted (made available for use). But "rs" takes a crack at unmounting the disks before restarting, which could save some time. If that fails, "rb" tries to unmount only the boot volume before telling the hardware to restart. Either is better than simply pressing the power switch twice or using the time-honored "Command+Control+PowerKey" force restart command.
These three useful commands: "es," "rs," and "rb," are just the tip of the iceberg, so to speak, of what MacsBug is capable of, but they are the reason I wouldn't want to be without it. If you don't already have MacsBug, give it a try. It's free! Just download, drop it in your System folder, and forget it until you need it. Instructions for installing MacsBug are included in the ReadMe file with the download.
MacsBug 6.6 final, Released October 25, is the latest version of MacsBug, and is the required version for Mac OS 9. It includes numerous bug fixes (yes, even a debugger can have bugs!) and cool new features. Highlights include basic support for the new PowerPC AltiVec (AKA: "Velocity Engine") vector unit, initial mouse-based control (MacsBug finally has a cursor!), a rewritten Watch Points implementation that supports Mac OS 8.6 and 9.0, as well as numerous other changes.
Another new feature in MacsBug 6.6 is the add "DS" (Display memory Strings) command, which searches through memory and displays the first string of characters that match a given criteria. A valid string has all characters in the ASCII range 32 to 127, and has a minimum specified length, which defaults to five characters. The following example finds all strings in the current application heap that are at least 20 characters long:
DS InApp #20
A new experimental feature in MacsBug is a Menu Bar, which is off by default, but which can be dynamically enabled with the "SET MENUBAR" command. To enable the menu bar by default, copy the 'mxpr' and 'TMPL' resources from MacsBug into your "Debugger Prefs" file, then edit the 'mxpr,' and set the "Show MacsBug menu bar" bit.
Text is now highlighted in various colors to show errors, warnings, etc. Entering MacsBug 6.6 no longer causes the Macintosh to lose the network connection when booted from a NetBoot server. Note that MacsBug calls the G4 processor "7400 (G4)."
You can download MacsBug from Apple's
MacsBug page.
- Be sure to read the follow-up article on MacsBug.
Join us on Facebook!, follow us on Twitter, use our Google+ page, or read our RSS news feed
Charles Moore has been a freelance journalist since 1987 and began writing for Mac websites in May 1998. His The Road Warrior column was a regular feature on MacOpinion, and he is a news editor and columnist at Applelinks.com. If you find his articles helpful, please consider making a donation to his tip jar.
Recent articles by Charles W. Moore
- Avoiding Lion, Apple Refurb Value, Why Millennials Might Be Avoiding Cars, and More, Charles Moore's Mailbag, 2012.04.17. Also browsers and writing tools for iPad users.
- Could an Apple iCar Ignite Automotive Enthusiasm for Car-Indifferent Millennials?, Miscellaneous Ramblings, 2012.04.10. Millennials seem far less interested in cars than prior generations. Could an Apple-themed car reverse that trend?
- Looking Back on 13 Years of Writing for Low End Mac, Miscellaneous Ramblings, 2012.04.06. Charles Moore has been writing for Low End Mac since 1999 and seen a lot of changes - but not in the Low End Mac philosophy.
- More in the Miscellaneous Ramblings index.
Links for the Day
- Mac of the Day: Macintosh 512K 'Fat Mac', introduced 1984.09.10. The first Mac with enough memory for serious work.
- May 22 in LEM history: 73: Ethernet conceived - 98: Is Apple really back? - 00: Cheap Power Macs - 01: Copyright or copy wrong? - 02: OS X is growing the Mac user base - 03: DVD screen shots in OS X - 06: Best OS for older Macs - 07: CRTs and shock danger - Ihnatko on Macs - CPU upgrades for MDD Power Macs - 08: Mac 512K and Word changed my life
- Support Low End Mac
Recent Content on Low End Mac
- Mac Pro on the Way Out or Changing with the Times?, Dan Bashur, Apple, Tech, and Gaming, 2012.05.22. No other desktop Mac offers a wide range of expansion options, but is that enough reason for Apple to keep the behemoth powerhouse Mac Pro around?
- iPhone 3D: Stereo Photography and 3D Movies for the Rest of Us, Anne Onymus, The Rumor Mill, 2012.05.22. Until now, stereo photography and 3D movies required expensive dedicated equipment. With the iPhone 3D, Apple will make it available to the masses.
- iPad 2 'Feels Like an Upgrade' from New iPad, Samsung Tops Apple in Smartphone Market, and More, iOS News Review, 2012.05.21. Also Apple to maintain tablet dominance, working in portrait mode, Wozniak would like to see end of walled garden, and more.
- MacBook Airs Top Ultrabooks, Boost MacBook Performance, MacBook Pro Update in June?, and More, The 'Book Review, 2012.05.21. Also Retina displays available now but costly, USB 3 expected in next MacBook rev, hybrid drives an affordable alternative to SSDs, and more.
- Flashback Removal Update for OS X 10.5 Leopard, Dropbox Pick of the Cloud Litter, and More, Mac News Review, 2012.05.18. Also Kodak Hero supports wireless printing from anywhere, WinOnX lets you run Windows apps on Macs, and free Mac Malware Remover.
- More links in our archive.
Recent Deals
- Best iPod classic Deals
- Best Mac OS X 10.6, iLife, and iWork Deals
- Best iPad Deals
- Best 15" MacBook Pro Deals
- Best iBook G4 Deals
- Best Classic Mac OS Deals
- Best Mac Pro Deals
- Best 15" PowerBook G4 Deals
- Best 17" PowerBook G4 Deals
- More deals in our archive.
About LEM Support Usage Privacy Contact
Follow
Low End Mac on Twitter
Join Low End Mac
on Facebook
Low End Mac Reader Specials
Macsales.com for the Right Mac Memory. Most Popular: 16GB from $128; 8GB from $50. MacBook Pro & Mac mini Kits up to 16GB. iMac up to 32GB & Mac Pro now up to 128GB. - Macsales.com
Don't install Parallels to play poker online! Macpokeronline.com will show you how to download and play Poker on a Mac natively on your Mac in just minutes.
Favorite Sites
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac Museum
Deal Brothers
DealMac
Mac2Sell
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ
Affiliates
Amazon.com
The iTunes Store
PC Connection Express
Parallels Desktop for Mac
eBay

