如何查看会话变量在Visual Studio 2008调试器? [英] How to view Session Variables in Visual Studio 2008 Debugger?

查看:187
本文介绍了如何查看会话变量在Visual Studio 2008调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常使用Visual Studio的调试器是一件轻而易举的事。通过扫描当地人迅速显示变量的值,等等。不过,我不知如何找出包含在会话状态变量的值?谁能给我个忙吗?
比方说,我把一个断点右后:

Usually using Visual Studio's debugger is a breeze. Scanning through Locals quickly shows the values of variables, etc. However, I'm at a loss how to find out the values contained in session state variables? Can anyone give me a hand? Lets say I put a breakpoint right after:


Session("first_name") = "Rob Roy"


如何查看从当地人中所含会议(FIRST_NAME)的价值?

How do I view the value contained in Session("first_name") from locals?

推荐答案

这是pretty简单的调试过程中,检查会话。只要把一个断点在code,只是突出你的会话 code(如突出:会话[如f​​irst_name] ),然后右键单击并选择快速监视...

It's pretty simple to inspect the session during debug. Just put a breakpoint in your code and just highlight your Session code (eg. highlight: Session["first_name"]) then right click and select QuickWatch....

这将设置为您已定义的值在会话的手表。您也可以通过在快速监视窗口中调整防爆pression 字段,并点击<检查其他会话元素code>重新评估按钮。

This will setup up a watch on your Session for the value you had defined. You can also inspect other Session elements by adjusting the Expression field in the QuickWatch window and clicking the Reevaluate button.

这篇关于如何查看会话变量在Visual Studio 2008调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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