Advertisement

02.22.2007 at 05:16PM PST, ID: 22408164
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

How do I prevent Xcode from going into debugger on a program error?

Asked by roc856 in C / C++ / C# Editors and IDEs, Development Editors & IDEs, Apple Programming

Tags: ,

I'm using Xcode 2.3 on a so-called "BSD C++" app that uses libtiff. Unfortunately, with some badly formatted TIFFs, libtiff crashes. I don't want to fix the particular problem, since it's probably one of many, but instead I want to make my program immune to these crashes so it can just display a message about the bad image and keep running. The bad code in libtiff generates a SIGBUS signal, which I catch and then longjmp from the signal handler. All of this is working perfectly.

Working perfectly when I double-click on the app from the Finder, that is, which is how all my users will launch the app. However, when I run the app from Xcode, either the Debug or Release configurations, instead of the signal being generated and then caught, I go into the Xcode debugger (gdb, actually) with the message 'Program received signal:  "EXC_BAD_ACCESS".' in the debug console window. I suppose this is done to help programmers debug, which is fine, but what I want to do is execute my signal-handling code, not stop in the debugger. Continuing from the debugger doesn't do the trick, and I can't find any Xcode or project options to control this behavior.

While I can work this way, it's very inconvenient. I like to click the "Build and Go" button while I'm working.

Is there any way to prevent going into the debugger when running an app from Xcode, so the app executes as though executed from the Finder?

(Note: Please read my question before answering. I'm not asking how to debug libtiff or how to handle a SIGBUS signal.)

Thanks!

--MarcStart Free Trial
 
Loading Advertisement...
 
[+][-]03.13.2007 at 12:44AM PDT, ID: 18708385

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C / C++ / C# Editors and IDEs, Development Editors & IDEs, Apple Programming
Tags: xcode, exc_bad_access
Sign Up Now!
Solution Provided By: fridom
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.10.2007 at 07:36PM PDT, ID: 18887123

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.16.2007 at 12:28PM PDT, ID: 19299227

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.16.2007 at 11:42PM PDT, ID: 19301670

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.13.2007 at 03:48PM PST, ID: 20276504

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11.15.2007 at 01:53AM PST, ID: 20287862

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.17.2007 at 12:28PM PST, ID: 20305292

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 09:03AM PDT, ID: 22368551

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.07.2008 at 07:18PM PDT, ID: 22414136

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32