Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!snorkelwacker!apple!agate!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: detecting macsbug Message-ID: <12555@hoptoad.uucp> Date: 29 Sep 90 05:38:37 GMT References: <109400@tiger.oxy.edu> <20759@well.sf.ca.us> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Electronics for Imaging, San Bruno CA Lines: 16 In article <109400@tiger.oxy.edu> sonenbli@oxy.edu (Andrew D. Sonenblick) writes: >>is there a cool way of detecting whether macsbug is installed? In article <20759@well.sf.ca.us> smoke@well.sf.ca.us (Nicholas Jackiw) writes: >Can you just check if GetTrapAddress($A9FF)<>GetTrapAddress(UnImplTrapNum)? >This will, of course, only tell you if -somebody- has installed a debugger, >not necessarily whether -macsbug- has. ($A9FF is the _Debug trap.) If I recall correctly, I tried this once and it didn't work. MacsBug takes over the trap dispatcher in order to intercept its two debugger traps; it doesn't use SetTrapAddress to grab the traps. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com This message does represent the views of Eclectic Software.