Web Technologist
Archive for December, 2008
Conditional Breakpoints
Dec 23rd
Visual Studio is filled with nifty tricks, which if leveraged properly in the right situation can make the developers life easy. Consider if you had a looping statement, and wanted to debug it, but only for a particular value. Rather than hitting the breakpoint every time, you can shorten the hits by using a Conditional Breakpoint.
To set a Conditional Breakpoint, right-click the Breakpoint circle and select the Condition option.

You can then define the condition and additionally select an option to filter the condition for evaluating the condition, or for raising the breakpoint when the value of the expression changes.
Attach to Process…
Dec 22nd
The average programmer uses the general Debug mode by using the “Start Debugging” option from the Debug menu, or the F5 shortcut key. But what if you want to debug an application that is already running? If you faced this problem, then this tip should lighten up your day.
Choose Debug | Attach to Process….
Select the aspnet_wp.exe from the list of Available Processes and click on Attach

Alternatively you can also use ALT + D , P to select the option.

