Is there a way to view ongoing sessions in Visual studio while debugging a asp.net application?
有没有办法在调试asp.net应用程序时查看Visual Studio中正在进行的会话?
And if there is, can you kill the sessions somehow?
如果有的话,你能以某种方式杀死会议吗?
I need this cause I need to check what, and how to fix, the problems that occurs when a session indeed has died and the user tries to do something that requires the specific session.
我需要这个原因我需要检查什么,以及如何解决会话确实已经死亡并且用户尝试执行需要特定会话的事情时发生的问题。
3 个解决方案
#1
I think I found a way to see it, and its content. While stepping though the code, stepping over line when the session I need to check is used, you can see it and its content in the "Autos" window. (Debug -> Windows -> Autos).
我想我找到了一种方法来看它和它的内容。在使用代码时,在使用我需要检查的会话时跳过行,您可以在“Autos”窗口中看到它及其内容。 (调试 - > Windows - > Autos)。
Cannot kill it though.
虽然无法杀死它。
#2
Would putting Trace = "True" in your page directive solve your issue? or are you asking whether the VS has a built in tool to manage sessions? if so, as far as I know it doesn't
将Trace =“True”放入页面指令会解决您的问题吗?或者你在问VS是否有内置工具来管理会话?如果是这样,据我所知它没有
#3
Ah! In the Autos window I could edit the session value to null, and getting the result I wanted.
啊!在Autos窗口中,我可以将会话值编辑为null,并获得我想要的结果。
#1
I think I found a way to see it, and its content. While stepping though the code, stepping over line when the session I need to check is used, you can see it and its content in the "Autos" window. (Debug -> Windows -> Autos).
我想我找到了一种方法来看它和它的内容。在使用代码时,在使用我需要检查的会话时跳过行,您可以在“Autos”窗口中看到它及其内容。 (调试 - > Windows - > Autos)。
Cannot kill it though.
虽然无法杀死它。
#2
Would putting Trace = "True" in your page directive solve your issue? or are you asking whether the VS has a built in tool to manage sessions? if so, as far as I know it doesn't
将Trace =“True”放入页面指令会解决您的问题吗?或者你在问VS是否有内置工具来管理会话?如果是这样,据我所知它没有
#3
Ah! In the Autos window I could edit the session value to null, and getting the result I wanted.
啊!在Autos窗口中,我可以将会话值编辑为null,并获得我想要的结果。