开发者

How to use +number in asp.net server error page?

If my app throws an exception I see the server error page. The stack track shows the method where the error occurred (null reference exception for example), and a plus number, like +730. How can I backtrack that number to the line of c# code?

Edit: I don't know what "+730" represents and I 开发者_JS百科don't have a reference manual for it. One thing I can tell you is that this is not a line in a C# file.


"it’s an offset into the native instructions for the method" - see http://odetocode.com/blogs/scott/archive/2005/01/25/funny-numbers-in-my-stack-trace.aspx


They're offset to machine code bytes. See here.

If you add the pdb files you might get the .NET code line number.


If you are using Visual Studio you can press Ctrl+G and enter the line number you want on the page that exception occurs also you can watch the Stack Trace using Debug > Window > Stack trace hope it helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜