Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker!bu.edu!dartvax!eleazar.dartmouth.edu!mjm From: mjm@eleazar.dartmouth.edu (Michael McClennen) Newsgroups: comp.sys.mac.hypercard Subject: Re: Debugging XCMDs Message-ID: <21934@dartvax.Dartmouth.EDU> Date: 8 May 90 18:29:05 GMT References: Sender: news@dartvax.Dartmouth.EDU Distribution: comp.sys.mac.hypercard Lines: 19 cliff@escher.soft.flab.fujitsu.co.jp (Cliff MILLER) writes: >I've started writing XCMDs and XFCNs using Lightspeed C v3.0 and have >been having a hard time finding a good way to debug them. The way I do >it now is to just right a plain old LS C program and throw in the code >from the XCMD that I want to test and debug it with the LS debugger. I >wish there was a better way. Is there? I have found TMON by Icom Simulations, Inc. to be invaluable in debugging XCMDs. TMON is a low-level debugger, which means that all you see is assembly language. But with a little bit of practice and an M68000 reference manual, it is not hard to work with. Remember, however, that Hypercard does not execute the XCMD resource directly. It makes a copy of the code and jumps to the copy. Michael McClennen Dartmouth College Academic Computing (no connection with Icom Simulations except as a satisfied customer)