Conditional Debugging!

by ipsit 27. February 2009 04:37

Have you ever felt the need of hitting a breakpoint when a condition is true. Well VS.Net does a good job on that regard.

Say we want to hit a break point if the value of variable, say a == 1.

Here are the steps of doing it.

Put a Breakpoint on the line of code and Right Click on the breakpoint.

 

Select Condition, which results in the following screen.

 

Over here you need to give the condition as,

 

Thats it.

Till then Happy Coding ! 

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Debugging


Inida

About Coderslog

One fine day we thought, we need to be contributing to our community.

So good sense prevailed, and that's how coderslog got started. That's about us.

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

RecentPosts

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010 CodersLog