Path: utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!srcsip!manyjars!mnkonar From: mnkonar@manyjars.SRC.Honeywell.COM (Murat N. Konar) Newsgroups: comp.sys.mac.programmer Subject: Re: Monitor trap Message-ID: <32890@srcsip.UUCP> Date: 27 Sep 89 20:52:43 GMT References: <1363@majestix.ida.liu.se> Sender: news@src.honeywell.COM Reply-To: mnkonar@src.honeywell.com (Murat N. Konar) Organization: ipd Lines: 26 In article <1363@majestix.ida.liu.se> andwi@majestix.ida.liu.se (Andreas Wickberg) writes: > >When working in THINK-C I sometimes get different result (= bombs) >when running the program from within THINK-C or as a stand alone >application. I've tried to find a way of calling the monitor (eg. >Macsbug) from the program to do the debugging from there, but without >luck. THINK can do this (cmd-M when debuggin), but how? There are two calls which should be callable from C. In Pascal they are: procedure debugger; {simply drops you into the debugger} procedure debugStr(theStr:str255); {drops you into the debugger and displays a string} {there. Very, very handy.} These calls are trap based but I can't recall the trap words. ____________________________________________________________________ Have a day. :^| Murat N. Konar Honeywell Systems & Research Center, Camden, MN mnkonar@SRC.honeywell.com (internet) {umn-cs,ems,bthpyd}!srcsip!mnkonar(UUCP)