且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

调试时,是否有办法判断对象是否为其他实例?

更新时间:2023-11-29 08:21:34

在调试时,请在本地窗口中找到更好的方法,而不必创建此虚拟ID字段? ,右键单击该实例,然后选择生成对象ID。

When debugging, in the Locals window, right-click on the instance and select "Make Object ID".

这将添加该实例唯一的编号,只要您看到此$ b $就会显示该编号。调试器中的b实例(在工具提示以及监视窗口中)。

This will add number that is unique for this instance which is displayed whenever you see this instance in the debugger (in tool-tips as well as in the watch window).