If you are using VB, you can add the keyword Stop in your code to suspend execution. The Stop statement is the equivalent to adding a breakpoint. Sometimes it is just faster to type “Stop” than it is to remember to hit F9 or reach for the mouse.

VB Stop example

If you are using C#, you can use the Debugger.Break() method in your code, provided you are using the System.Diagnostics namespace.

C# Debugger.Break() example

Technorati Tags: VS2005Tip,VS2008Tip