CS5.5 观察“变量”中的变量窗户
这更像是一个懒惰的程序员问题,但是有没有办法改变变量在“变量”窗口中列出的方式以进行调试?具体来说,它整齐地列出了当前正在执行的任何块的所有局部变量,但是为了检查非局部变量,我必须深入到大量繁琐的下拉选项卡(this->that->SomeOtherLayer->ThatObject ->AChild->ThatThingYouWantedToSee)。这是特别痛苦的,因为对新块的更改最大限度地减少了下拉列表,因此我被迫不断地重新检查我的变量。
我知道跟踪语句的力量,虽然它们可以帮助密切关注执行情况,但如果有一种方法可以以某种方式“标记”特定变量以与顶级列出的局部变量类似的方式进行观察,我会一位快乐的露营者。
This is more of a lazy programmer question, but is there any way to change how variables are listed in the "Variables" window for debugging? Specifically, it neatly lists all local variables for whatever block is currently executing, but in order to inspect non-local variables I have to dive down a cumbersome number of drop down tabs (this->that->SomeOtherLayer->ThatObject->AChild->ThatThingYouWantedToSee). This is particularly painful as a change to a new block minimizes the drop-downs and so I am forced to constantly recheck my variables.
I am aware of the power of trace statements, and while they can help keep tabs on execution, if there is a method of somehow "tagging" specific variables to watch in a similar fashion to the top-level listed local variables, I would be one happy camper.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用允许监视表达式的 Flash Builder。此外,大多数情况下,它会记住您最后一次在类中查看的变量,并且下次执行该代码时,它将直接打开该变量(不能保证,但大多数情况下)。
Use Flash Builder, which allows for watch expressions. Also, most of the time it will sort of remember what variable you were last looking at in a Class, and the next time it goes through that code it will open straight to that variable (not guaranteed, but most of the time).