调试执行冒险 [英] Debug-Execution Adventure

查看:123
本文介绍了调试执行冒险的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我调试了我的java代码。它没有给出任何错误。但是当我执行它(它也没有给出错误,但是)代码没有成功终止。这很有趣但是,甚至可能吗?

解决方案

当调试器引入的放缓确实掩盖了一些竞争条件,但这通常只适用多线程或网络代码。


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?

解决方案

sure, when the slowdown introduced by debugger does mask some race condition, but this normally only applies to multi-threading or networking code.

这篇关于调试执行冒险的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆