[Mono-bugs] [Bug 600458] New: Debug.Assert needs listeners setup

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 28 07:52:36 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=600458

http://bugzilla.novell.com/show_bug.cgi?id=600458#c0


           Summary: Debug.Assert needs listeners setup
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: debug
        AssignedTo: martin at novell.com
        ReportedBy: piotr.wysocki at secpl.cs.put.poznan.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9)
Gecko/20100402 Ubuntu/9.10 (karmic) Firefox/3.5.9

When using Debug.Assert (...) one needs to setup debug listeners.

Reproducible: Always

Steps to Reproduce:
1) Try the following code (a.cs)

using System;
using System.Diagnostics;

public class MainClass {
    public static void Main (string[] args)
    {
        //Debug.Listeners.Add (new ConsoleTraceListener ());
        Debug.Assert (false);
        Environment.Exit (0);
    }
}

2) gmcs -d:DEBUG a.cs && mono a.exe


Actual Results:  
No output.

Expected Results:  
I guess (= I am not sure of this) I should see some output.
To see any output I need to uncomment the commented Debug.Listeners.Add line.

Microsoft's csc does not require this. I consider this a bug.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list