4

Well, I've read (and learned) that the finally block doesn't always execute its code (even apart from pulling the plug).
FYI For more information, see try catch finally question

However, what I haven't found:
Does my finally block get executed when I stop the debugger?

Thanks!

Community
  • 1
  • 1
Nullius
  • 2,607
  • 2
  • 16
  • 22

1 Answers1

6

No. When you stop the debugger before reaching the finally-block, it won't be executed.

Dennis Traub
  • 50,557
  • 7
  • 93
  • 108