• 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
Breakpoint condition "foo == YES" is ignored
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Breakpoint condition "foo == YES" is ignored


  • Subject: Breakpoint condition "foo == YES" is ignored
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 02 Feb 2014 20:45:58 -0800

Sometimes breakpoint conditions work for me, but usually they don’t.  Here is an example?

• A method has a BOOL parameter ‘foo’
• I set a breakpoint in the method.
• Activate the Breakpoint Navigator.
• I execute a secondary click on the breakpoint.
• From the contextual menu which appears, select “Edit Breakpoint”
• In the “Condition” field, enter:  foo == YES
• Run the product into this method.  It stops at my breakpoint.
• I hover mouse over ‘foo’ in the method.

Expected Result:
foo should be YES, because that was a breakpoint condition.

Actual Result:
foo is NO, or ‘0’ if I “p (int)foo”

What did I do wrong?

58-second video showing what I did…

http://www.youtube.com/watch?v=oDwPkAecMHI

Thanks!


 _______________________________________________
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: Breakpoint condition "foo == YES" is ignored
      • From: Fritz Anderson <email@hidden>
    • Re: Breakpoint condition "foo == YES" is ignored
      • From: Roland King <email@hidden>
  • Next by Date: Re: Breakpoint condition "foo == YES" is ignored
  • Next by thread: Re: Breakpoint condition "foo == YES" is ignored
  • Index(es):
    • Date
    • Thread