Visual Basic调试器不允许我查看本地变量的值 [英] Visual Basic debugger not allowing me to view values of local varaibles

查看:136
本文介绍了Visual Basic调试器不允许我查看本地变量的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio调试器不允许我查看任何本地变量的运行时值.我收到消息:未声明变量".由于其保护级别,它可能无法访问.

这是Visual Studio 2010中的错误,还是我做错了什么?我所有的局部变量都正确声明了.以下是其中一些:

The Visual Studio debugger is not allowing me to view the run-time values of any local varaibles. I get the message: ''varaible'' is not declared. It may be inaccessible due to its protection level.

Is this a bug in Visual Studio 2010 or am I doing something wrong? All my local variables are correctly declared. Here are some of them:

Dim changes As String = ""
Dim dtARCUS As DataTable



为什么Visual Studio抱怨抱怨保护级别?本地变量没有访问修饰符.



Why does Visual Studio moan about protection levels? Local Varaibles doesn''t have access modifiers.

推荐答案

这与保护级别"或任何保护均无关.您确定输入了在调试器中的代码中声明了局部变量的堆栈框架吗?你必须.局部变量仅存在于堆栈中,当您进入调试器下的函数时可以访问.

—SA
This has nothing to do with "protection levels" or protection whatsoever. You you sure you enter the stack frame where your local variable are declared in your code under debugger? You have to. Local variable only exist of stack and can be accessed when you step into the function under debugger.

—SA


您好,
我认为这是解决问题的解决方案.

Hello,
I think this is a solution to remove the problem.

http://www.simple-tech.info/vbnet-error-message-error-47-blablabla-is-not-declared-it-may-be-inaccessible-due-to-its-protection-level.aspx[^]


这篇关于Visual Basic调试器不允许我查看本地变量的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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