如何在出现页面错误异常的代码中进行排队(在VS 2005中)?

时间:2017-12-14 17:40:06

标签: visual-studio debugging exception

我正在生产环境中运行可执行文件的发布版本(使用Visual Studio 2005构建)。我们收到页面错误异常,转储给出了一个地址。如何将此地址转换为Visual Studio 2005中的代码行?我是否需要运行Debug构建?

1 个答案:

答案 0 :(得分:0)

我所知道的是,如果我们想要真正获得引发Exception的行号,我们需要拥有匹配的PDB文件或其他文件的完整转储文件。

您还可以使用Windbg工具和命令行:

参考:

is it possible to get the line from which the exception was thrown from a dump?

Windows/C++: Is it possible to find the line of code where exception was thrown having "Exception Offset"

注意:由于VS 2005真的是旧版本,我们现在也没有这个环境,如果可能的话,也许你可以使用更高的VS版本,如VS2015 / VS2017。