Mac Help Forums


Reply
Thread Tools Display Modes

Noob Objective-C exception.

 
slashlos
Guest
Posts: n/a
 
      15th September 2009
Is there a compiler / project switch / flag to halt to the debugger when
an objectAtIndex: method call exceeds its array?
--
/los "I was a teenage net-random"
 
Reply With Quote
 
 
 
 
slashlos
Guest
Posts: n/a
 
      23rd September 2009
Luddite Wacko wrote:

> This way, where ever you are having a problem, change the "objectAtIndex:
> " message to "theObjectAtIndex:" and place breakpoints as noted above.
> Then you will hit a breakpoint only if there is something wrong with
> your code - oece you have it fixed, change the message back.


Yeah, I had thought of something similar but when this occurs I've no
idea where; it'd be a bit tedious to implement in a large project. I
take to eyeballing recent modifications but

What I was going after was say a catch handler per class. If an error
occurred the class would halt to the debugger vs. the 1 line console log
output; now if it'd give me a stack trace I could work with that.

Now it's sort of like getting a 'you have an error in your app' message.
--
/los "I was a teenage net-random"
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing and playing games noob Soth666 Mac OS X 0 27th March 2010 03:50 PM
Mac Noob Help - Key functionality jpd1903 Mac OS X 0 23rd December 2009 01:00 PM
IceClean deleting all files? Help a noob out! Kenobio Mac Applications 0 31st July 2007 03:31 PM
PB G4 Ti boot up problems (noob) seansea Mac Notebooks 11 31st October 2006 01:22 AM


All times are GMT +1. The time now is 04:07 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
wifi drops out on my imac
tommysting (1 Hour Ago, 02:15 PM)

iPod and camera won't connect
Sprightly (9 Hours Ago, 06:10 AM)

USB problems
neallgilroy (1 Day Ago, 04:00 PM)

Start Up Disc Full
Hemibee (1 Day Ago, 03:24 PM)

How do I change pdf attachment to an icon?
Bunnyzilla (1 Day Ago, 06:45 AM)