• 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: Debugging Unit Tests
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging Unit Tests


  • Subject: Re: Debugging Unit Tests
  • From: David Lázaro Saz <email@hidden>
  • Date: Sat, 11 Jun 2005 18:43:06 +0200


On 10/06/2005, at 15:42, Jesse Grosjean wrote:

But sometimes (when the tests don't run) I would like to set breakpoints in my test cases and break into XCode's debugger. Is that possible? How do I turn debugging on for the new built in unit testing?

What I usually do is to create a new custom executable named Test. Then you set the path for the custom executable to /Developer/Tools/otest and add an argument named Test.octest in the arguments info panel of the executable (if your unit testing target is called Test, that is).

Whenever you want to debug your unit tests, you can set it as the active executable and debug at will.

This, of course, only works for Objective-C. The idea is that you need a custom executable environment, in the same way that you would need one if you were developing a framework.

HTH,

David.

 _______________________________________________
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: Debugging Unit Tests
      • From: Jesse Grosjean <email@hidden>
References: 
 >Debugging Unit Tests (From: Jesse Grosjean <email@hidden>)

  • Prev by Date: Re: Re: Debugger breakpoints have "drifted"
  • Next by Date: Cross-compiling support
  • Previous by thread: Re: Debugging Unit Tests
  • Next by thread: Re: Debugging Unit Tests
  • Index(es):
    • Date
    • Thread