Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好吧,我已经阅读(并了解到)finally 块并不总是执行它的代码(即使除了拔掉插头)。仅供参考有关更多信息,请参阅try catch finally 问题
但是,我还没有发现: 当我停止调试器时,我的 finally 块是否被执行?
谢谢!
不,当您在到达 finally 块之前停止调试器时,它不会被执行。