Display lines number in Stack Trace for .NET assem

2018-12-31 16:30发布

Is there a way to display the lines in the stack trace for the .NET assembly build/deployed in Release mode?

UPDATE:

My application is divided into three class library projects and one ASP.NET "website" project. The error I am trying to track down is in one of the three class library projects. I only deployed the pdb file for the class library project that is generating the "Object reference not set to an instance of an object" error.

The line numbers are still not showing up in the stack trace. Do I need to deploy the pdb files for all projects to get the line numbers in the stack trace?

Working solution

Deploying the pdb file for each application fixed the line number issue.

7条回答
ら面具成の殇う
2楼-- · 2018-12-31 17:18

Include debug symbols with your build/deployment package.

查看更多
登录 后发表回答