Path: utzoo!utgpu!attcan!uunet!husc6!sunfs3!geoff
From: geoff@sunfs3.camex.uucp (Geoffrey Knauth)
Newsgroups: comp.sys.mac.programmer
Subject: Re: LSC debugger. How can you debug code resources/ drivers?
Message-ID: <135@sunfs3.camex.uucp>
Date: 15 Aug 88 12:24:38 GMT
References: <1012@mtund.ATT.COM> <718@ttrdf.UUCP>
Reply-To: geoff@sunfs3.UUCP (Geoffrey Knauth)
Distribution: na
Organization: Camex, Inc., Boston, Mass USA
Lines: 17

In article <718@ttrdf.UUCP> fjo@ttrdf.UUCP (Frank Owen ) writes:
>
>  I know that the manual specifically mentions that you cannot
>debug code resource or driver projects, but I could swear I
>read in some article somewhere that Michael Kahl has been
>demonstrating some simple techniques to do this. 

Here is a rough sketch of Mike's demonstration to the BCS MacTechGroup:

1. Create a CDEV resource, that basically contains a jump to 0000 0000.
   One member commented that 0000 0001 is better for debugging.
2. Keep the routines you are testing with your application.
3. Open the resource at run-time, and patch the jump with the address
   of the code you are debugging.  
-- 
Geoffrey S. Knauth    CAMEX, 75 Kneeland St., Boston, MA 02111, 617/426-3577
geoff@sunfs3.uucp                                  I do not speak for Camex.