In visual studio 2010 how can you debug a class
When I set a bre开发者_运维问答akpoint in a class then access a method, debugger does not hit breakpoint. What would be best way to debug a class?
- Maybe your code doesn't reach the breakpoint.
- Maybe your compiled code wasn't compiled from the source that you have opened.
You may wish to post the method. My 1st thought is to make sure you're compiling in Debug mode, not release.
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.
精彩评论