• 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: Jesse Grosjean <email@hidden>
  • Date: Sun, 12 Jun 2005 08:25:45 -0400

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.

Thanks everyone, I didn't know about making custom executables.

Jesse
 _______________________________________________
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: 
 >Debugging Unit Tests (From: Jesse Grosjean <email@hidden>)
 >Re: Debugging Unit Tests (From: David Lázaro Saz <email@hidden>)

  • Prev by Date: Re: Build Style access at compile time
  • Next by Date: Re: Command-K not compiling
  • Previous by thread: Re: Debugging Unit Tests
  • Next by thread: Intel inline assembly
  • Index(es):
    • Date
    • Thread