Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!greggor From: greggor@Apple.COM (Greg L. Anderson) Newsgroups: comp.sys.mac.programmer Subject: Re: Forcing debugger? Message-ID: <49805@apple.Apple.COM> Date: 2 Mar 91 21:15:48 GMT References: <0.27CC7494@MMUG.EDGAR.MN.ORG> Organization: Apple Computer Inc., Cupertino, CA Lines: 18 In article <0.27CC7494@MMUG.EDGAR.MN.ORG> Edward.Blakes.Jr.@f13.n396.z1.MMUG.EDGAR.MN.ORG (Edward Blakes Jr.) writes: >In THINK C how can I force my program to drop to Macsbug? I'm sure many people have already mentioned the Debugger() and DebugStr( Str255 pstr ) calls; I just thought that I would speak up and mention that I have written routines called DebugNumber( Str255 pstr, long n,... ) and DebugPrintf( char *msg, long n, ...) DebugPrintf depends on the MacsBug "printf" dcmd. These routines were written with MPW C, but would probably port to Think without much difficulty. Mail me if you want a copy; I can send it out on Monday when I get back to work. -- ___\ /___ Greg Anderson (6 kyu) ___\ /___ \ \ / / User Programming Group \ \ / / () "Ponnuki \ /\/\ / Apple Computer, Inc. \ /\/\ / () () is ideal \/ \/ greggor@apple.com \/ \/ () shape."