如何在“With对象”中查看调试器中的VB.NET对象属性块? [英] How to view VB.NET object properties in the debugger within a "With object" block?

查看:144
本文介绍了如何在“With对象”中查看调试器中的VB.NET对象属性块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当调试器处于中断模式时,通过将鼠标指针放在对象的属性上,我无法在With块的当前范围内查看变量的值。也就是说,在下面的代码中,当我将鼠标悬停在.acctProperty上以查找当前的AcctObject.acctProperty值时,没有任何反应。

When the debugger is in break mode, I can't view the value of a variable within the current scope of a "With" block by placing the mouse pointer over the object's property. That is, in the code below, nothing happens when I hover over over ".acctProperty" to find the current value of AcctObject.acctProperty.

With AcctObject
...
   Dim xyz = .acctProperty
'''
End With

这是VS2015中的VB.NET。有没有办法完成这个?

This is VB.NET in VS2015. Is there a way to accomplish this?

推荐答案

你可以输入 AcctObject.acctProperty 进入Watch窗口。

You can just type AcctObject.acctProperty into the Watch window.

如果找不到监视窗口,那么可以通过选择 Debug .. Windows在调试模式下,从顶级菜单中观看

If you can't find the watch window - then you can access it by choosing Debug .. Windows .. Watch from the top menu when in debug mode.

这篇关于如何在“With对象”中查看调试器中的VB.NET对象属性块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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