StudioShell and the Debugger

This is a wonderful article on using StudioShell with the visual studio debugger.

This artictle shows how to script the local variables of the currently debugged process.
Given StudioShell has out-html and out-chart this allows the dynamic creation of visualised data straight from the current debug session.

StudioShell is a powershell console that is embedded into visual studio (it can also be invoked from the NuGet console).
It exposes the visual studio extension api known as dte as a set of powershell scripts.

This Code Was Generated By A Tool

This comment seems to be appearing in my code rather more frequently recently, especially as I have been working with WCF.
This should include the important information which tool generated the file, include version information and parameters used.

WCF code generation is rather weak. It includes 7 wierdly named hidden files. One of these includes a url reference to the web service that generated the client proxy.
If the config file for the service fails to include a reference to the service then the service that generated the client is used. This is very dangerous and will make production code accidently refer to a test server.