• 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: Breakpoints in threads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breakpoints in threads?


  • Subject: Re: Breakpoints in threads?
  • From: j o a r <email@hidden>
  • Date: Fri, 19 Aug 2005 23:02:34 +0200


On 19 aug 2005, at 22.09, Roland Torres wrote:

This is probably a naive question, but...
is there a way to set a breakpoint in code that runs in a thread?
I'm launching threads via NSThread's +detachNewThreadSelector:toTarget:withObject: method.
It seems Xcode just ignores the breakpoints I set. Or is there something special one must do?

No, you should not have to do anything special - your problem is probably not related to the fact that the code is running in a non- main thread.


If you set a breakpoint in your non-threaded code, does it work?
Are you debugging optimized or non-optimized code?
Are you sure that the code around  your breakpoint is ever executed?

Also, make sure you check the other similar threads on this topic (problems with breakpoints).

j o a r



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Breakpoints in threads? (From: Roland Torres <email@hidden>)

  • Prev by Date: Multiple Build target types in single Xcode project?
  • Next by Date: Re: svn: Can't open '/svnrep/db/current.tmp': Permission denied
  • Previous by thread: Breakpoints in threads?
  • Next by thread: Multiple Build target types in single Xcode project?
  • Index(es):
    • Date
    • Thread