On Tue, Dec 15, 2009 at 4:34 PM, PCWiz <pcwiz.supp...@gmail.com> wrote:
> I don't know why this is happening. I don't think its an issue with my code 
> if it works in Debug (Xcode & Finder) and Release (Xcode only).

Two rules of software development:
Rule 1: Check again. It's probably your fault.
Rule 2: It's still probably your fault.

> My build configurations for both Debug and Release are identical (I haven't 
> checked thoroughly, but I know I didnt change much). Both configs are set to 
> use the LLVM GCC 4.2 compiler, and GC is set to Required. The only other 
> change I've made is adding a few header search paths.

When it comes to debugging, there is no such thing as "not checking
thoroughly."  There is only "Checking thoroughly" and "not checking at
all."  "Checking thoroughly" means proving (not convincing, but
actually sitting down with a backtraces, a debugger, and even
single-stepping through your source code if necessary) that your
program is behaving as designed.

So, run your release-built app from inside gdb (yes, you can run a
non-debug app inside a debugger).  When it does something wrong, trap
that error in the debugger and figure out what happened.  Then fix
your bug.  Rinse, repeat.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to