Re: Unit testing - printf and gdb
Re: Unit testing - printf and gdb
- Subject: Re: Unit testing - printf and gdb
- From: Dan Uff <email@hidden>
- Date: Tue, 10 Jun 2008 07:51:34 -0400
Hi,
Instead of using 'printf' try:
NSLog ("print anything");
or
NSLog variable;
'printf' doesn't seem to work that good in XCode.
-Dan
On Jun 10, 2008, at 5:29 AM, Alan Shouls wrote:
Hi,
I have been experimenting with the C++ unit testing that is built
into xcode. It is pretty straightforward and works just fine. In
test driven development you fully expect to get test failures -
which you then debug and fix. And here is my problem
- If I include printf or squirt stuff in cout, when running the
tests in xcode, I can't seem to see any output - where does it go? I
have optimistically looked at the console in xcode, and in the
proper console and can't seem to see anything. My guess is that this
is some basic "numpty" error on my part - but I would be happy for a
heads up.
- Is it possible to enter into tests in the debugger. I could not
see a way to do this - but I would dearly love to set breakpoints
and start "mixing it" with the debugger
Best regards
Alan Shouls
_______________________________________________
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
_______________________________________________
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