Bug 11599 - Stack trace of dynamically generated assembly is missing debug information
Summary: Stack trace of dynamically generated assembly is missing debug information
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2013-04-04 21:30 UTC by rowzydower
Modified: 2013-04-04 21:30 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Source code to create a dynamic assembly that throws an error with debug info (6.33 KB, application/zip)
2013-04-04 21:30 UTC, rowzydower
Details

Description rowzydower 2013-04-04 21:30:42 UTC
Created attachment 3754 [details]
Source code to create a dynamic assembly that throws an error with debug info

The attached code creates a dynamic assembly and writes a method containing debug information.

.NET gave the following exception information: 

	MonoBug.exe!MakeExpression.ThrowError() Line 9 + 0x2e bytes	C#
-> 	onlyModule.dll!MyDynamicType.MyMethod() Line 42 + 0x6 bytes	Unknown
 	[External Code]	

	MonoBug.exe!CompileExpression.CompileAndRun(System.Linq.Expressions.Lambda
Expression expression) Line 47 + 0x49 bytes	C#
 	MonoBug.exe!MainClass.Main() Line 6 + 0x8 bytes	C#
 	[External Code]	

Line 2 is the important one: It showed that the error had debug information of line 42.

Mono gives the following information instead:

  at MyDynamicType.MyMethod () [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d5] in /builddir/build/BUILD/mono-2.10.8/mcs/class/corlib/System.Reflection/MonoMethod.cs:226

The line number of the error is missing.

Note You need to log in before you can comment on or make changes to this bug.