在visual studio中在哪里观察全局数据结构,变量? [英] where to observe the global data structures, variables in visual studio?

查看:49
本文介绍了在visual studio中在哪里观察全局数据结构,变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我调试并到达断点时,我只能在 Visual Studio 2008 的本地"选项卡中看到局部变量.

Wehn I debug and reach a breakpoint I can see only the local variables in the Locals tab in visual studio 2008.

在visual studio中哪里可以观察全局数据结构、变量?

where to observe the global data structures, variables in visual studio?

推荐答案

Watch 窗口中.Local 选项卡用于局部变量,顾名思义.

In the Watch window. The Local tab is for local variables, as the name clearly suggests.

您需要手动添加变量.您可以转到快速查看窗口 - Ctrl + Alt + Q,在那里输入变量名称,然后按 Add Watch.该变量将被添加到观察窗口.

You'll need to add the variable manually. You can go to the quick-watch window - Ctrl + Alt + Q, enter the variable name there, and press Add Watch. The variable will be added to the Watch window.

这篇关于在visual studio中在哪里观察全局数据结构,变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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