Search code examples
c#visual-studio-2010cassini

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: Session in Watch

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: Session Key Value


Solution

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