|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
IntroductionThe 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 BackgroundVisualizers 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:
Using the CodeThere are three main parts in writing a visualizer:
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 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. HistoryFirst version of this code released on Feb 4th 2008. I will come back soon with improvements.
|
||||||||||||||||||||||