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

  • Home
  • SEARCH
  • 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 9253045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:06:56+00:00 2026-06-18T11:06:56+00:00

I’m writing a 3rd party plug-in for a closed-source application. I’m running into a

  • 0

I’m writing a 3rd party plug-in for a closed-source application. I’m running into a problem with the XCode debugger.

I’d like to use the debugger to step through the code of the plug-in I’m writing. To do this, I’ve set a breakpoint in my code, I’ve launched the host app, and then I’ve attached the XCode debugger to the host app’s process. My problem is that, rather than stopping at my breakpoint, the debugger stops instead at an exception thrown by another part of the program. (Specifically, this: Thread 2: EXC_ARITHMETIC (code=EXC_i386_DIV, subcode=0x0))

This exception is thrown so often that it effectively makes it impossible to step through the code I’m actually interested in.

I can’t catch and handle this exception, because I don’t have the source code for the part of the app that throws it.

In this situation, can anyone suggest how I might be able to debug my code? Is there any way to tell the XCode debugger to simply “ignore” this particular EXC_ARITHMETIC exception, and, instead, to stop only on the breakpoints that I’ve explicitly set?

UPDATE

@user1118321 suggested turning off exception breakpoints using the breakpoints pane. I’ve tried to do so using the settings shown here.

enter image description here

I thought that selecting “Automatically continue after evaluating” might keep the debugger from stopping. It didn’t.

I also tried issuing cont to the debugger after stopping. This doesn’t seem to work either.

enter image description here

Can anyone you advise me on what settings I should enter here to keep the debugger from stopping on my EXC_ARITHMETIC exception?

  • 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-06-18T11:06:57+00:00Added an answer on June 18, 2026 at 11:06 am

    I followed the links suggested by @user1118321. After several hours of head scratching, I couldn’t figure out how to either turn off or handle the integer division by zero exception. If anyone has any ideas I’d be happy to hear them.

    I did find a workaround, though, which is to use GDB instead of XCode. Unlike XCode, GDB doesn’t seem to stop on the EXC_ARITHMETIC and lets me step into my code. So, for the time being I’m going to switch over to GDB for debugging.

    EDIT

    A second (better) workaround, in my case, involved suspending the thread that was throwing the exception. This also allowed me to step through my plugin’s code.

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

Sidebar

Related Questions

I am currently running into a problem where an element is coming back from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am confused How to use looping for Json response Array in another Array.
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace

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.