title: Debug C# code without running the application
body: <p>I'm often in the need of debugging/testing my code or a small part of it. </p>
  
  <p>One way to go is of course to run the application I am developing, or when developing a class library creating a small test application.</p>
  
  <p>Another way is to create a unit test just for debugging purpose and run it in Visual Studio.</p>
  
  <p>But what if when I don't want to write additional code (like disposable unit tests) and I don't want to start the whole application (takes some time to start and to navigate to the code I want to debug)?</p>
  
  <p>Is there a way to run a small portion of code in Visual Stuio respectively interpret C# code?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I know about <a href="http://www.linqpad.net/" rel="nofollow">LINQPad</a>. </p>
  
  <p>But sometimes I want to know e.g. how an <code>Form</code> looks like while running or if a component is able to talk to a database. So LINQPad does not suit my needs in those cases...</p>