3

I have a problem with my Visual Studio installation. When I got an exception I always have incorrect line numbers in it's stack trace. There are always point to last line of each method in my codebase. At the same time it's OK when I'm tracing programs with debugger. What's happed with PDBs?

No, I'm not re-throwing exception at each method.

In each line of stack trace I have last row of corresponding method, while exception had thrown by statement in the middle.

4

1 回答 1

2

听起来您正在以发布模式运行您的应用程序。发布模式难以处理异常的行号等。

在调试模式下编译您的应用程序(无需附加调试器)并查看它是否自行解决。

于 2008-09-22T13:26:44.593 回答