[Mono-list] Debug.Assert(): usable in current form?

Robert Jordan robertj at gmx.net
Fri Dec 29 15:57:05 EST 2006


Paul Melis wrote:
> 
> When compiled with
> 
> gmcs -out:t.exe -debug t.cs

gmcs -debug ....

> 
> and run with
> 
> mono --debug t.exe
> 
> I get
> 
> ---- DEBUG ASSERTION FAILED ----
> ---- Assert Short Message ----
> 
>     at System.Diagnostics.TraceImpl.Assert ()
>     at System.Diagnostics.Debug.Assert ()
>     at Test.Main ()
> ---- Assert Long Message ----
> 
> I.e. no line numbers. Without those my assert statements are useless as
> there are several within the same method.

Indeed, they are if you don't compile using the proper switch ;-)

Robert



More information about the Mono-list mailing list