调试时复制对象 [英] Copying the objects while debugging
问题描述
在eclipse的调试模式下复制变量值时,我们可以使用复制变量选项,我们可以使用该变量复制存储在该对象中的值,但是现在我观察到当我们粘贴在记事本中时,变量名为Long,Integer不要给你这些数值,而是你会得到一些参考号与数据类型。
While copying the variable values in debugging mode of eclipse , we have the option Copy Variables , which we can use to copy the values stored in that object but now I observed that when I paste those in notepad , variables named Long,Integer don't give you the values instead you will get some reference numbers with the datatype.
例如:id Short(id = 2435)
For example : id Short (id=2435)
如果我还想得到对象的详细树拷贝,调试时。
What If I also want to get the detailed tree copy of the object , when I am debugging.
推荐答案
我找到答案,展开对象的每个树节点,然后说复制变量,然后只会复制你想要复制的变量。
I found the answer , expand each and every tree node for the object .And then say copy variables and then only it will copy the variables you wanted for copying.
这篇关于调试时复制对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!