[Mono-bugs] [Bug 331781] New: Stack trace don't match file names/ line numbers specified by "#line"

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 8 07:26:06 EDT 2007


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

           Summary: Stack trace don't match file names/line numbers
                    specified by "#line"
           Product: Mono: Runtime
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: debug
        AssignedTo: martin at novell.com
        ReportedBy: juraj at hotfeet.ch
         QAContact: mono-bugs at ximian.com
          Found By: ---


Test case:
==========

using System;
class Test {
    static void Main() {
        try {
                object o = null;
#line 300 "/www/blah/test.aspx"
                o.ToString();
        } catch(Exception e) {
                Console.WriteLine(e);
        }
    }
}

Mono:
-----
mcs -debug test.cs
mono --debug test.exe

System.NullReferenceException: Object reference not set to an instance of an
object
  at Test.Main () [0x00000] in /home/js/temp/test.cs:6

NET:
-----
csc /debug test.cs
test.exe

System.NullReferenceException: Object reference not set to an instance of an
object.
  at Test.Main() in c:\www\blah\test.aspx:line 300


This functionality is import for debugging ASP.NET applicationss with mono.
Once we add the #line pragmas via CodeCom, exceptions could locate the
offending line in the _original_ source file.


-- 
Configure bugmail: https://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