在Visual Studio中记录呼叫堆栈 [英] recording call stack in Visual Studio

查看:104
本文介绍了在Visual Studio中记录呼叫堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Visual Studio中调试一个非常大的c ++/c程序.更改一个参数的值会显着改变结果.我想记录两次运行的调用堆栈并比较它们.

I'm trying to debug a really large c++/c program in Visual Studio. Changing value of one parameter changes the result dramatically. I want to record a call stacks for both runs and diff them.

有人知道如何在不设置断点和使用窗口中的选择全部/复制"的情况下将调用堆栈转储到VS中的文件吗?

Does anybody know how to dump a call stack to a file in VS without setting breakpoints and using Select ALL/Copy in the window?

谢谢.

推荐答案

看看这个 StackWalk64 API.

Take a look at this codeproject example which uses the StackWalk64 API.

这篇关于在Visual Studio中记录呼叫堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆