Wednesday, January 30, 2008

I love this little bit of code.

if (Debugger.IsAttached)
{

}

If you want your application to do different 'stuff' when you are debugging it, then the above works a treat.

I'm using it now to start a windows service as a console application when I run it in debug mode. (wicked)

Wednesday, January 30, 2008 3:23:12 PM UTC  #    Comments [0]  | 

Theme design by Jelle Druyts

Pick a theme: