Visual Studio C ++ [英] Visual Studio C++

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

问题描述

大家好

我正在VS 2008 C ++中尝试开放源代码.

我在代码的不同位置插入断点以了解发生了什么.

我有办法观察在每个断点处调用的不同功能吗?

即WinMain
功能A
功能B

等等?

解决方案

打开调用堆栈窗口将为您提供当前的执行路径,以查看对该函数的调用来源.您还可以通过OutputDebugString()添加日志记录. 它将为您提供所有功能的跟踪.但是为此,您需要专门对其进行调用.


Hi All

I am experimenting with open source code in VS 2008 C++.

I insert breakpoints at different places in the code to understand what is going on.

Is there a way for me to observe the different functions that have been called at each breakpoint?

i.e. WinMain
Function A
Function B

etc?

without inserting debug code?

解决方案

Opening the call stack window will give you the current execution path to see where the call to this function has come from...


You can also add logging through OutputDebugString().
It will give you the Trace for all the functions. But for that you need to make call to it exclusively.


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

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