[Mono-bugs] [Bug 409045] New: #DEBUG causes Debug.WriteLine in other files enabled.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 14 16:34:44 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=409045


           Summary: #DEBUG causes Debug.WriteLine in other files enabled.
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dennis84225 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
                CC: dennis84225 at gmail.com
          Found By: Customer


Created an attachment (id=227684)
 --> (https://bugzilla.novell.com/attachment.cgi?id=227684)
source files to reproduce the bug

Description of Problem:
#DEBUG in one file with no Debug.WriteLine commands causes Debug.WriteLine in
other files enabled without defining debug elsewhere in the compilation.

Steps to reproduce the problem:
1. gmcs -output:/Test.exe Program.cs Class1.cs
2. mono Test.exe

Actual Results:
"debug message 1"

Expected Results:
nothing

How often does this happen? 
every time

Additional Information:
On MS.NET (Windows) it prints nothing but Mono (Linux) prints the message
written by Debug.WriteLine. And according to
[http://msdn.microsoft.com/en-us/library/system.diagnostics.debug(VS.85).aspx],
it shouldn't be printed out.


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


More information about the mono-bugs mailing list