[Mono-list] Debugging NUnit Test Cases
Jonathan Pryor
jonpryor@vt.edu
11 Mar 2002 09:31:36 -0500
I thought I had mentioned this, but apparently I hadn't. I debugged the
test case to determine what was causing the StackOverflowException,
thinking it was a recursive call. While debugging, I never came across
a recursive call; the StackOverflowException was generated immediately
after I returned from a function. The call stack depth was ~15 levels
deep, with the overhead of NUnit, not the 100's I'd expect in the case
of recursion-gone-wrong.
It's as if the call stack were somehow corrupted, and the
StackOverflowException emitted because of it.
- Jon
On Mon, 2002-03-11 at 09:23, Adam Chester wrote:
> I'm guessing StackOverFlowException means there is a recursive function call
> in there somwhere.. calling itself for eternity.
>
> - Adam
>
> -----Original Message-----
> From: mono-list-admin@ximian.com [mailto:mono-list-admin@ximian.com]On
> Behalf Of Jonathan Pryor
> Sent: Monday, 11 March 2002 11:17 AM
> To: mono-list@ximian.com
> Subject: [Mono-list] Debugging NUnit Test Cases
>
>
> Is there any way to tell NAnt to compile the test cases with debugging
> information so that the NUnit test cases can be debugged with e.g.
> DbgCLR? ``<property name="debug"/>'' doesn't seem to apply to test
> targets. It would simplify things if I didn't have to recompile DLLs by
> hand just to get the debugging information...
>
> Also, why is the default for some assemblies, such as System.dll, omit
> debugging information? (<property name="debug" value="false"/>)
>
> Finally, does anybody have any idea why I'd be getting a
> System.StackOverflowException when running an NUnit test case? (In
> particular, the TraceTest suite, just added to CVS. This is why it
> *isn't* part of AllTests.cs.) It doesn't appear to be my case in
> particular, as any of the System.dll test suite's generates the same
> error on my machine. (This is why I tried getting debugging
> information. Even with debugging information, I didn't see any actual
> stack overflows; after a function return, the StackOverflowException was
> emitted.)
>
> Thanks,
> - Jon
>
>
>
>
> _______________________________________________
> Mono-list maillist - Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>