超级断点 [英] Super BreakPoint

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

问题描述

Hi, 

我正在尝试简化调试任务,并且有一个想法可以提高调试速度.假设我有一个值,例如2.8651,该值在我不知道的时刻出现在代码中.我想知道是否有可能创建一个超级断点 它会在变量中的一个第一次使用此值时停止.我记得我不知道哪个变量取值.我可以花一些时间在调试器上来了解它,但是我很懒.我对VS的VBA并不是很熟悉.我想,一个解决方案 将创建一个宏,该宏将在代码执行的每一行沿局部变量循环.当条件

I'm trying to simplify my debugging tasks and I had an idea which could increase my debugging speed. Suppose I have a value, say 2.8651 that appear in the code at a moment I do not know. I'm wondering if it was possible to create a super breakpoint which would stop at the first time one of the variable takes this value. I recall that I do not know which variable takes the value. I could know it by spending some time on the debugger but I'm lazy. I'm not really familiar with VBA for VS. I guess, a solution would be to create a macro which would loop along local variable at each line of the code execution. It'd stop when the condition localVariable == 2.8651 is verified.

感谢您的回答!

推荐答案

好,在Visual C ++中,这称为数据断点.根据 如何:设置数据断点(仅本地),在Visual Basic中不可用.
Well, in Visual C++ this would be called a Data Breakpoint.  According to How to: Set a Data Breakpoint (Native Only) , it's not available in Visual Basic.


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

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