TweetFollow Us on Twitter

Aug 97 MacTech Online

Volume Number: 13 (1997)
Issue Number: 8
Column Tag: MacTech Online

MacTech Online

by Nicholas C. "nick.c" DeMello <online@mactech.com>

It's Called MacsBug

Not MacBug, not MacBugs. The acronym stands for "Motorola advanced computer systems debugger." This powerful system extension allows developers to view and manipulate the contents of the Macintosh ram. You can download the latest version from Apple's Developer World ftp site, but if that (or any Apple ftp server) is busy check out Apple's "Software Home" page. The Software Home allows you to search for the latest version of any software Apple distributes.

MacsBug can be installed by simply dragging its file into your system folder (not your control panels folder, not your system extensions folder). When you restart your "Welcome to Macintosh" screen will display "debugger installed" if MacsBug loads (or the phrase "...carry a big stick" if you have a beta OS). Once installed, you can drop into MacsBug by hitting the command and power (triangle) keys together. Older systems require a system extension called programmers key to drop into MacsBug. Dropping into MacsBug suspends all processes and allows you direct access to all values in memory (great for pausing Doom). To return to the finder hit command-G, or to restart your Mac type "rs."

One way to learn more about using MacsBug is to drop into it and type "help" (or if you'd rather get the same information without wandering around your system memory visit Thomas Kimpton's MacsBug Help page). The Code Mechanic, Dave Evans, has at least three develop articles about wielding MacsBug (my favorite was "Stalking the Wild Defect"). In the September 1994 MacTech tips and tidbits there is a nice example of how to build a MacsBug macro, and the neat trick of making it execute automatically, every time MacsBug is entered. Check it out on the MacTech website.

Sleuthing through your systems memory is only half the fun though. When you've built up enough confidence to try and manipulate some memory see the Kool MacsBug Tricks page.

Download MacsBug from Devworld
ftp://ftp.apple.com/devworld/Tool_Chest/Testing_-_Debugging/Debuggers_-_dcmds/
Find the Latest Apple Software at Apple's "Software Home"
http://support.info.apple.com/ftp/swhome.html
Download Programmers Key or EvenBetterBusError
ftp://ftp.apple.com/devworld/Tool_Chest/Testing_-_Debugging/General_tools/
MacsBug Help
http://www.ambrosiasw.com/~dnebing/macsbug.html
Stalking the Wild Defect
http://devworld.apple.com/dev/techsupport/develop/issue27/balance.html
The MacsBug "Every time" Macro, MacTech Archives
www.mactech.com/articles/mactech/Vol.10/10.09/Sep94Tips/index.html
Kool MacsBug Tricks
http://gossamer.wheatonma.edu/users/bcote/syzgycult/Macsbug.html

EvenBetterBusError -- The Art of the Controlled Crash

EvenBetterBusError crashes your Mac. Unlike most software though, Greg Marriott's system extension does so on purpose. When you have EBBE installed, if your code dereferences a NIL pointer, writes to a NIL pointer, or attempts to execute code at NIL EBBE will crash your Mac (dropping you into MacsBug). Greg has put EBBE and three other stress testing tools that he developed at Apple on the web. Greg warns that some these tools are showing a little age, and recommends folks consider Onyx technologies commercial stress testing tools. Onyx's QC is an established and well respected stress tester. If you want to shake your code -- hard: give it to QC.

Oh, and those of you looking for the fourth generation of Mr. BusError can find YetEvenBetterBusError (aka DavesBetterBusError) beta on Dave Evan's web site. This more aggressive version of EBBE, announced in the May 1997 MacTech, can also be found on the MacTech ftp site along with the Tidy Heap C++ class library (for tracking proper use of new and delete).

EvenBetterBusError & Other Kool Tools by Greg Marriott
http://www.spies.com/~greg/tools.html
About QC...
http://www.onyx-tech.com/faq/current_QC_faq.html
Dave Evans & DavesBetterBusError
http://ng.netgate.net/~tilde/mechanic/
YEBBE & Tidy Heap
ftp://ftp.mactech.com//mactech/src/13.05/

Parting Shots

Next month MacTech Online is going to get serious about Java -- really. One last debugging tool you should check out before then is the Zone Ranger. Zone Ranger is a valuable tool for the counts and total sizes of the free blocks, pointers, handles, locked handles, purgeable handles, and resource handles that can be found on the Metrowerks web site. See you next month.

-- nick.c <online@mactech.com>

Joshua Golub's Zone Ranger
http://www.metrowerks.com/tools/software/zoneranger.html
 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All


Price Scanner via MacPrices.net

Early Black Friday Deal: Apple’s newly upgrad...
Amazon has Apple 13″ MacBook Airs with M2 CPUs and 16GB of RAM on early Black Friday sale for $200 off MSRP, only $799. Their prices are the lowest currently available for these newly upgraded 13″ M2... Read more
13-inch 8GB M2 MacBook Airs for $749, $250 of...
Best Buy has Apple 13″ MacBook Airs with M2 CPUs and 8GB of RAM in stock and on sale on their online store for $250 off MSRP. Prices start at $749. Their prices are the lowest currently available for... Read more
Amazon is offering an early Black Friday $100...
Amazon is offering early Black Friday discounts on Apple’s new 2024 WiFi iPad minis ranging up to $100 off MSRP, each with free shipping. These are the lowest prices available for new minis anywhere... Read more
Price Drop! Clearance 14-inch M3 MacBook Pros...
Best Buy is offering a $500 discount on clearance 14″ M3 MacBook Pros on their online store this week with prices available starting at only $1099. Prices valid for online orders only, in-store... Read more
Apple AirPods Pro with USB-C on early Black F...
A couple of Apple retailers are offering $70 (28%) discounts on Apple’s AirPods Pro with USB-C (and hearing aid capabilities) this weekend. These are early AirPods Black Friday discounts if you’re... Read more
Price drop! 13-inch M3 MacBook Airs now avail...
With yesterday’s across-the-board MacBook Air upgrade to 16GB of RAM standard, Apple has dropped prices on clearance 13″ 8GB M3 MacBook Airs, Certified Refurbished, to a new low starting at only $829... Read more
Price drop! Apple 15-inch M3 MacBook Airs now...
With yesterday’s release of 15-inch M3 MacBook Airs with 16GB of RAM standard, Apple has dropped prices on clearance Certified Refurbished 15″ 8GB M3 MacBook Airs to a new low starting at only $999.... Read more
Apple has clearance 15-inch M2 MacBook Airs a...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs now available starting at $929 and ranging up to $410 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at... Read more
Apple drops prices on 13-inch M2 MacBook Airs...
Apple has dropped prices on 13″ M2 MacBook Airs to a new low of only $749 in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, now available for $679 for 8-Core CPU/7-Core GPU/256GB models. Apple’s one-year warranty is included, shipping is free, and each... Read more

Jobs Board

Seasonal Cashier - *Apple* Blossom Mall - J...
Seasonal Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Seasonal Fine Jewelry Commission Associate -...
…Fine Jewelry Commission Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) Read more
Seasonal Operations Associate - *Apple* Blo...
Seasonal Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Read more
Hair Stylist - *Apple* Blossom Mall - JCPen...
Hair Stylist - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.