New to the SQL Server Express 2008 debugger.
Here's what happens. Let's say I have stored proc with 4 delete statements and the 2nd delete results in a FK violation on some other table. When I exec the sp and flip to the messages tab (which is next to the results tab) I can see the fk violation error in red color.
However if I step into the sp and go line by line there is no live error display. Basically there is no messages tab at all when you step into a sp. I see the call stack window, watch window, breakpoints window etc. I don't have any try catch
or the classic if (@@errror) goto there
type lines and putting error handling will probably be detected correctly in debugger as well.
I plan to do error handling but for now my question pertains to the use of the debugger. As soon as I stop the debugger the messages tab appears and I can see the fk violations. How do I see my errors live instead of having to wait to stop the debugger ? thank you