• 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 ignored while running unit tests! Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: breakpoints ignored while running unit tests! Why?


  • Subject: Re: breakpoints ignored while running unit tests! Why?
  • From: Chris Hanson <email@hidden>
  • Date: Tue, 09 Sep 2008 13:52:23 -0700

On Sep 9, 2008, at 1:05 PM, Karan, Cem (Civ, ARL/CISD) wrote:

I apologize for taking so long to reply; I broke the build, and had to
spend some time fixing it.

1) yes, it is FOCU_S tester.app.

2) I do not expect any user actions to hit the breakpoint; that is, the
unit tests are run when the program is built, and I put a breakpoint at
the start of one of the test methods.

As I have said several times now, breakpoints will not be hit during build.  The debugger is not used during build at all, even when running your tests.

You must explicitly debug your test application in order for your unit test breakpoints to be hit.  You do not need to add a menu item or button to cause your tests to be invoked, you just need to debug the application that is hosting your tests.

In the future, please be more specific about the exact steps you are following when you are running into problems.  It will help them get resolved much more quickly.

  -- Chris

 _______________________________________________
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: breakpoints ignored while running unit tests! Why?
      • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
    • Re: breakpoints ignored while running unit tests! Why?
      • From: Pat McGee <email@hidden>
References: 
 >breakpoints ignored while running unit tests! Why? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: breakpoints ignored while running unit tests! Why? (From: Philippe Casgrain <email@hidden>)
 >RE: breakpoints ignored while running unit tests! Why? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: breakpoints ignored while running unit tests! Why? (From: Chris Hanson <email@hidden>)
 >RE: breakpoints ignored while running unit tests! Why? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: breakpoints ignored while running unit tests! Why? (From: Chris Hanson <email@hidden>)
 >RE: breakpoints ignored while running unit tests! Why? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)

  • Prev by Date: Re: Porting projects from Windows
  • Next by Date: Re: breakpoints ignored while running unit tests! Why?
  • Previous by thread: RE: breakpoints ignored while running unit tests! Why?
  • Next by thread: Re: breakpoints ignored while running unit tests! Why?
  • Index(es):
    • Date
    • Thread