Why does postsharp lose stacktrace info for the calling method

98 Views Asked by At

In release mode Postsharp enhanced methods lose the line numbers etc for the calling method only. This is despite the pdb file being provided. If i don't use Postsharp the line number etc are included.

Is there a workaround for this?

Edit:

Here is the output from my logger of the stack trace captured within the OnMethodBoundry aspect:

TestStackTrace.PSOnEntryExit.OnEntry at offset 104 in file:line:column T:\My Projects\TestStackTrace\TestStackTrace\PostScript.cs:33:4

TestStackTrace.Program.testMethod at offset 122 in file:line:column :16777215:0

TestStackTrace.Program.Main at offset 98 in file:line:column T:\My Projects\TestStackTrace\TestStackTrace\Program.cs:21:4

The file:line:column numbers are 'mangled' only when the project is processed by SmartAssembly. SmartAssembly does not need to be configured to actually do anything specific. Indeed, I have left all SmartAssembly options unticked in my efforts to isolate the issue.

0

There are 0 best solutions below