[futurebasic] Re: [FB] Help on Pasteboard.h

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2009 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Sat, 10 Jan 2009 13:10:44 +1300
Deep wrote:

>>>> It crashes in CGContextStrokePath().
>>> Deep - this can be clearly seen in gdb if you're wondering if  
>>> Robert intuited this.
> Yes, was wondering about how he pin-pointed it so accurately! Will  
> have to look into the gdb.

A large fraction of crashing bugs can be diagnosed quickly from the  
function call stack at the time of the crash. There is no need to  
delve into the mysteries of the gnu debugger gdb to see the call stack.

1. Every programmer should set Crash Reporter to show a call stack.  
This is done by running CrashReporterPrefs.app (which in OS X 10.5  
resides at /Developer/Applications/Utilities/), and choosing Developer  

2. Learn to use FBtoC's 'Debug Last App in Xcode' command. See the  
example FB_5_x_y_Examples/Debug/DemoCrash.

Robert P.