如何知道变量更改其值的确切点? [英] how to know the exact point where a variable changed its value?

查看:110
本文介绍了如何知道变量更改其值的确切点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目设置了
textbox2.readonly = true
,但是当程序加载时,它显示textbox2为readonly = false
这个项目很大,我正在更改
有什么方法可以跟踪textbox2.readonly属性在哪里更改?


仅当textbox.readonly属性已更改时,才会选中BP.根据被击中的BP和BP的位置,您将能够确定属性的更改位置.


谢谢,
Parool


hi, I have a project where I set
 textbox2.readonly=true
but when the program loads it shows the textbox2 as readonly=false
This project is huge, and I'm changing the 'readonly' property of many textboxes in different places, but this particular textbox shouldn't change.
Is there any way to track where the textbox2.readonly property is changing?

解决方案

Hi,

You could set a BP at selected portions of the code. Right click on the BPs, a context menu will come up. Select Condition and specified "textBox1.ReadOnly" in the textbox and select checkbox "has changed"

The BP will be hit only when the textbox.readonly property has changed. Based on the BPs being hit and the location of the BPs, you will be able to figure out where the property is being changed.


Thanks,
Parool


这篇关于如何知道变量更改其值的确切点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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