简体   繁体   中英

How can I inspect data in a Cassini Session?

Is there an easy way to inspect the data stored in my Cassini session? I know I can use watch entries, but I wanted to know if there was a better tool.

For example, if I want to see all Keys currently stored in Session, I have to dig down like this: 观看时段

Then, each time a new value is added, the _entriesTable property collapses and I have to expand it again to see the new values.

Furthermore, if I want to see what is actually stored in session for those values, I have to copy each key and add a new watch for it, Session["72ddf034-71e6-4a28-9aa1-f8d83245a6fe"] . If I drill all the way down in the entries table, it shows me the Key and the type of the Value, but I can't drill down into properties of the value here: 会话密钥值

Just put break points or use the Immediate Window in Visual Studio to output the contents of Session . Cassini makes no difference here.

一种可能的解决方案是使用持久性会话提供程序(例如将会话保存到数据库的提供程序),然后使用所需的任何工具检查存储的数据。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM