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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to