If I interrupt debugging by clicking the "Break All" (") toolbar button, I can't evaluate any expressions in the Immediate Window. I get the message "Unable to Evaluate the Expression" whenever I try. But if I call the Stop statement in code, then I can. So I end up putting code in my form like:
so that I can access the Immediate Window and query values. Is this right that I have to do this?
Code:
Private Sub picCanvas_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles picCanvas.DoubleClick
If System.Diagnostics.Debugger.IsAttached Then Stop
End Sub