是否需要在“监视"窗口中执行功能? [英] Is there any requirement for a function to be executed in Watch window?

查看:105
本文介绍了是否需要在“监视"窗口中执行功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual C ++ 2010/2008.谁能提供对要在监视窗口中执行的功能的更详细的要求?

I'm using Visual C++ 2010/2008. Can anyone provide a more detailed requirement for a function to be exectued in watch window?

我搜索了Internet,他们说只能执行一些小功能.但是我不知道什么是小".我有两个大小相似的函数,它们都向磁盘上的文本文件中写入一些信息.但是可以在监视窗口中执行一项功能, 另一个不能.您能提供一些指导,以便我可以重新执行功能以使其可以执行吗?

I searched the Internet and they say only small functions can be executed. But I don't know what is "small". I have two functions with similar size, they both write some information to a text file on the disk. But one function can be executed in watch window, the other can't. Could you provide any guidelines so I can re-work my function to let it can be executed?

这对我来说非常重要,因为我依靠这些功能来打印复杂系统的一些调试信息.

This is very important to me because I rely on these functions to print some debug information of a complex system.

谢谢

-Kai

推荐答案

从监视窗口调用某些方法时,请确保这些方法的执行时间应足够短(大约少于10秒).否则,评估超时将导致异常.

While calling some methods from watch window, please make sure the execution time for the methods should be less enough ( approx. less than 10 sec ). Otherwise you will get exception on evaluation time out.

ref:

这篇关于是否需要在“监视"窗口中执行功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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