Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: MacsBug and LSC Message-ID: <32499@ucbvax.BERKELEY.EDU> Date: 12 Nov 89 03:36:33 GMT References: <6988@hubcap.clemson.edu> <38417@srcsip.UUCP> <20356@brunix.UUCP> <38448@srcsip.UUCP> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 16 If you include the file you get all the declaration you need to use DebugStr(). Now, I am going to reveal a great secret, this little gem was my main debugging tool before I got the THINK C version 3 source level debugger. It is a variant of printf() that writes to the debug screen: dprintf(pat, arg)char *pat;int arg;{ char s[256]; s[0] = vsprintf(&s[1], pat, &arg); DebugStr((StringPtr) s); } --- According to the Constitution, the Constitution is unconstitutional: --- David Phillip Oster --U.S.Constitution I.10.1: "No State shall Arpa: oster@dewey.soe.berkeley.edu --enter into any treaty, alliance, or Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu -- confederation..."