Debug-Execution Adventure
问题 I debugged my java code. It didn't give any errors.But when i executed it (it isn't giving errors either, but) the code didn't successfully terminate. This is very funny. But is that even possible? 回答1: sure, when the slowdown introduced by debugger does mask some race condition, but this normally only applies to multi-threading or networking code. 回答2: Yes it is possible that code works when debugging and doesn't work when running. Two possible reasons I can think of right now are