Code stops responding when breakpoints added
I am debugging some code for a button, and part of it closes a sqlconnection on a distant (i.e. slow connection) server. When I just run the code, it works ok, but if I put a breakpoint in any of the methods called by the button, it will stop responding, the problem being that the connection doesn't close, but no errors are generated (got it in a try..catch block), it is just that pressing any of F5 (Run), F10 (Step Over) or F11 (Step Into) never returns control to the debugger. If I then restart the application and leave it to run, clicking on the button works ok (so long as there aren't any breakpoints!)
|