[Mono-list] System.Diagnostics.Debug.Assert()
Nicholas Frechette
zeno490 at gmail.com
Thu Oct 27 18:28:52 EDT 2011
Don't forget to register a listener.
System.Diagnostics.Debug.Listeners.Add (new
System.Diagnostics.ConsoleTraceListener());
Cheers,
Nicholas
On Thu, Oct 27, 2011 at 1:33 PM, Steve Lessard <s_lessard at yahoo.com> wrote:
> Debug builds of my Mono command line application blow right by all
> Debug.Assert statements, even the ones I know fail the assertion. Heck, even
> Debug.Assert(false, "Foo") gets ignored. Neither running standalone on the
> command line via Terminal.app nor running in MonoDevelop's debugger makes a
> difference; the asserts are always ignored. I've checked, double-checked,
> and even triple checked that I am created Debug builds. Is there any way to
> force Mono to honor the asserts?
>
> -SteveL
>
> p.s. I'm running Mono 2.10.6 and MonoDevelop 2.8.1 on OS X 10.5.7
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
More information about the Mono-list
mailing list