BillTetrault
BillTetrault

Reputation: 213

In visual studio 2010 how can you debug a class

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

Answers (3)

Bill W
Bill W

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

Igor
Igor

Reputation: 27250

  • Maybe your code doesn't reach the breakpoint.
  • Maybe your compiled code wasn't compiled from the source that you have opened.

Upvotes: 2

Ian Jacobs
Ian Jacobs

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

Related Questions