Re: Debugging Unit Tests
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