Reputation: 213
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?
Upvotes: 2
Views: 226
Reputation: 1488
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). If the above have been done then set the breakpoint earlier in the method that is being called. Can't be more specific without seeing your code.
Upvotes: 0
Reputation: 27250
Upvotes: 2
Reputation: 5501
You may wish to post the method. My 1st thought is to make sure you're compiling in Debug mode, not release.
Upvotes: 0