在C ++中查找函数 [英] Finding A Function in C++

查看:88
本文介绍了在C ++中查找函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试查找Visual Studio 2010 win 7 C ++解决方案中正在使用的功能.该函数称为PrintData().我似乎在任何地方都找不到.

I''m trying to find a function that is being used in a Visual Studio 2010, win 7, C++ solution. The function is called PrintData(). I can''t seem to find it anywhere. Any clues on where to look?

推荐答案

在调用PrintData的行上放置一个断点.然后,在遇到断点时,进入该函数.如果函数已编译且您有源代码,调试器将立即向您显示源代码.

如果调试器找不到源,则您可能仍会从文件名(调试器可能要求浏览)或函数所在的DLL(查看堆栈跟踪)中获得提示.
否则,您可以在项目或包含的文件中进行全局查找.
Put a breakpoint on the line that call PrintData. Then when the breakpoint is hit, step into that function. If the function is compiled and you have source, the debugger would immediatly show you the source code.

If the debugger does not find the source, you might still have an hint from the filename (debugger might ask to browse) or the DLL where the function reside (look the stack trace).

Otherwise, you can do a global find in your project or included files.


这篇关于在C ++中查找函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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