Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6773923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:43:32+00:00 2026-05-26T15:43:32+00:00

Possible Duplicate: Xcode 4.2 showing the wrong line of code on error Xcode 4’s

  • 0

Possible Duplicate:
Xcode 4.2 showing the wrong line of code on error

Xcode 4’s debugger doesn’t seem to halt execution anywhere near the causes of crashes in iOS Simulator. Say I introduce a bug in my code, perhaps an array out of bounds error like this:

NSMutableArray * test = [[NSMutableArray alloc] initWithCapacity:5];
[test insertObject:@"Hello" atIndex:10];

When the app inevitably crashes, I’m taken to the main function in main.m with nothing on the call stack (the ‘By Thread’ view) to help me find what went wrong.

Is there a debugging setting I’m missing in the build properties, perhaps? This is Xcode 4.2 on Snow Leopard if it helps.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:43:33+00:00Added an answer on May 26, 2026 at 3:43 pm

    Go to the breakpoints panel, and add the bottom left, click the + sign and add an “Exception breakpoint”.

    Exceptions : All
    Break : On throw.

    That should solve the problem in most cases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Xcode - iPhone - profile doesn’t match any valid certificate-/private-key pair in
Possible Duplicate: How do I rename a project in Xcode? Hi I am tying
Possible Duplicate: Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't
Possible Duplicate: Can't remove Default.png? I am using Xcode 4, but I am sure
Possible Duplicate: or is not valid C++ : why does this code compile ?
Possible Duplicate: xCode 4 -reinstalls keychain certs that I delete The question says it
Possible Duplicate: crashing on ios device while navigation using UIModalTransitionStylePartialCurl in xcode 4 HI
Possible Duplicate: How to “add existing frameworks” in Xcode 4? How do I add
Possible Duplicate: How to quickly set up Git for teams using Xcode? I have
Possible Duplicate: What are the common workarounds for multi-line comments in Perl? How do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.