I have been working on a particularly complex HACK and needed a way to do
source-level debugging, so I figured one out. I use CW Mac.
First of all, i made a new 'starter' project. Then, I use
SysSetTrapAddress() in AppStart to 'install' my hack the same way as occurs
with HackMaster. In AppStop, I restore the correct address. Except that I
point the HACK'd routine to a routine in the app called 'DebugHack', which
uses SysAppLaunch() with a special launch code to re-call my app. The app
handles the special launch code by calling the Main Entry point of the
Hack, and that's it. But it's VERY nice to have source-level debugging of a
HACK while it's running as a HACK. It makes debugging very easy.
Thought I'd share,
Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293