• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: debug problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debug problem


  • Subject: Re: debug problem
  • From: Eric Albert <email@hidden>
  • Date: Sat, 9 Oct 2004 15:51:14 -0700

On Oct 9, 2004, at 3:17 PM, Eric Ocean wrote:

The Xcode part is this: my application works correctly if I quit Xcode, relaunch Xcode and then run it, in either the debugger or as a normal application (command-R). If I continue to run the application in Xcode, without quitting, or recompiling my application, eventually it will start acting incorrectly (writing to a file when it shouldn't be–at least, that's the symptom because I can't see it being written in the debugger, or through log messages I've added to the single method that writes to that file.)

My application appears to execute code it shouldn't be (though I can't confirm that it is executing anything, other than it's effect on the file system). The code appears to be executed before main() is called, so it's unclear to me where to put a breakpoint.

Apologies for asking the obvious, but couldn't you put a breakpoint on the method that writes to that file? Then you could look at the backtrace and see where it's being called.


Alternatively, you could put a breakpoint on open or write.

Also, if you have ZeroLink turned on, try turning it off. I'm not sure how it could cause this, but it can cause things to load differently from how they typically do. That's a complication you might want to avoid here.

-Eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: debug problem [solved]
      • From: Eric Ocean <email@hidden>
    • Re: debug problem
      • From: Eric Ocean <email@hidden>
References: 
 >debug problem (From: Eric Ocean <email@hidden>)

  • Prev by Date: Re: debug problem
  • Next by Date: Re: debug problem
  • Previous by thread: Re: debug problem
  • Next by thread: Re: debug problem
  • Index(es):
    • Date
    • Thread