[Mono-list] Debug.Assert is ignored...

Gonzalo Paniagua Javier gonzalo@ximian.com
14 May 2003 16:02:43 +0200


El mié, 14 de 05 de 2003 a las 15:52, Maurizio Colucci escribió:
> Hello,
> 
> I must be missing something trivial.
> 
> Debug.Assert(false);
> 
> is ignored. Shouldn't the program terminate?

You must compile the program with /d:DEBUG switch.

Take a look at the documentation of ConditionalAttribute.

-Gonzalo