Search This Blog

Tuesday, September 8, 2009

Checking Session variables during Visual Studio 2008 debugging session

Often during debugging I need to enumerate the current session variables in use plus get their current values. It isn't documented but it isn't hard to do by examining the "Session" variable which is available during a debugging session.

  • Add a "Session" watch variable in the watch window
  • Under the "Session" watch variable, look under "Keys"
  • Look under "Non-public members"
  • Look under "_col"
  • Look under "Non-public members"
  • Look under "_entriesarray"

Each Session variable will be listed along with its current value.

No comments: