Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!zephyr.ens.tek.com!tektronix!reed!bowman From: bowman@reed.UUCP (Eric Bowman) Newsgroups: comp.sys.mac.programmer Subject: Re: Setting SADE Breakpoints Message-ID: <14072@reed.UUCP> Date: 6 Feb 90 03:14:46 GMT References: <20562@watdragon.waterloo.edu> Reply-To: bowman@reed.UUCP (Eric Bowman) Distribution: na Organization: Reed College, Portland OR Lines: 39 Keywords: SADE, breakpoints Summary: You could be doing 2 things wrong... There could be, I think, 2 possible reasons for why you aren't able to set a breakpoint. First, you've got to make sure SADE knows what program you debugging. I keep a little PROC in SadeUserStartup for the current program I'm working on, which looks something like this: proc Launcher; directory 'UncleBoBo:BoBo:Projects:LauncherInstall:'; sourcepath 'UncleBoBo:BoBo:Projects:LauncherInstall:'; target 'LaunchInstallDebug'; break main.(1); launch 'LaunchInstallDebug'; end; Then I just type "Launcher" and it breaks at main.(1). I think after the target command, you can open a source file and set a breakpoint; this would make sense, but I've found that SADE is not guaranteed to make since (is it just me, or is printf really annoying?) Another possible problem involves static functions in C. I've found that I can't seem to set a breakpoint in a static function until I'm inside a global function in the same source file as the static function. Hope this helps. ============================================================================== | The Insidious Uncle BoBo | ------------------------------------------------------------------------------ | "As I see it, my friends can access my private | | members in a public class..." | ============================================================================== | Eric Bowman -> | | ShitNet: bowman@reed.bitnet | | FarFromFreeNet: (503)234-7158 (Like I'll Really Answer) | | Disclaimer: "If my employer ever found out my opinions, well..." | /=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=\=/=