views:

58

answers:

3

When I set a breakpoint in a class then access a method, debugger does not hit breakpoint. What would be best way to debug a class?

A: 

You may wish to post the method. My 1st thought is to make sure you're compiling in Debug mode, not release.

Ian Jacobs
+1  A: 
  • Maybe your code doesn't reach the breakpoint.
  • Maybe your compiled code wasn't compiled from the source that you have opened.
Igor Oks
A: 

First be sure that you have compiled your solution in debug mode (select Debug as your solution configuration). Then make sure that you are running in debug mode (press F5 or from the menu select Debug|Start Debugging).

Bill W