![]() |
Web Development »
ASP.NET »
Utilities
Beginner
License: The Code Project Open License (CPOL)
Session Vizualizer for Visual Studio 2005By Radu ChirilaDebug tool for analyzing Session content in web applications. |
C# (C# 2.0), .NET (.NET 2.0, .NET 3.0, .NET 3.5), ASP.NET, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
The purpose of this tool is to let developers easily analyze Session content during debugging and also browse stored objects. For this, a simple interface was built, and a PropertyGrid control is used. In large web applications, there are situations when developers leave old objects stored in the Session, and these are disposed only when the session in ended. Using this tool, it is easy to see the Session content and improve the code that manages Session content.
Visualizers are a new feature in Visual Studio 2005, and allow developers to inspect values at debug time using a graphical interface. These components can be integrated with Visual Studio, and provide extra performance in debugging specific data types.
Built-in visualizers are available for:
DataSet/DataTable/DataViewThere are three main parts in writing a visualizer:
IDebugVisualizer interface and runs inside the debugger process.
For installing the visualizer, this line can be used:
copy "$(TargetPath)" "$(HOMEDRIVE)$(HOMEPATH)\
My Documents\Visual Studio 2005\Visualizers"
This is also used as a post-build event in the attached code to install it automatically after the project is built.
After installing, in order to use it, add the Session object in the Watch window, and click the magnifier icon.
The Session visualizer at this moment has a major drawback: the objects stored in the Session need to be serializable in order to be copied from the application process to the debugger process. Most of the websites use InProc sessions, and objects stored are not always serializable. I think I can improve this in a future version. If you have any idea for improvements, please contact me.
First version of this code released on Feb 4th 2008.
I will come back soon with improvements.
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 29 Nov 2008 Editor: Smitha Vijayan |
Copyright 2008 by Radu Chirila Everything else Copyright © CodeProject, 1999-2009 Web21 | Advertise on the Code Project |