The code fragment you show reveals that, unfortunately, you have very little understanding on how to do programming. Note this mistake and don't repeat it: your if-else block is totally redundant.
You need to have something like this:
if (!updated) return;
e.Cancel = (MessageBox() == DialogResult.No);
This won't answer your question, but this is because your answer does not have to be answered. The approach shown above works correctly; and it should work exactly like that under debugger (just because otherwise you would not know what are you debugging). You can always stop debugging via the IDE, which is the only right thing is you don't want to save file or continue execution with anything else.
—SA