即使我单击“运行”,Eclipse 也会运行调试模式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6460370/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse runs debug mode even when I click "run"
提问by saarraz1
Eclipse always starts my app on debug mode even though i click the regular "run" button...
Eclipse 总是在调试模式下启动我的应用程序,即使我点击了常规的“运行”按钮......
Any ideas?
有任何想法吗?
回答by Paul Carff
I found that I had to reboot my Xoom to get it to work properly again.
我发现我必须重新启动我的 Xoom 才能让它再次正常工作。
回答by user1978019
When this happened to me I found that I had left a call to android.os.Debug.waitForDebugger() in the code, which was causing the debugger to attach. Removing those calls fixed the problem.
当这发生在我身上时,我发现我在代码中留下了对 android.os.Debug.waitForDebugger() 的调用,这导致调试器附加。删除这些调用解决了问题。
回答by Jimmy
try to select Run -> Remove All Breakpoints, and run your project again
尝试选择 Run -> Remove All Breakpoints,然后再次运行您的项目
回答by Houcine
Use the perspective DDMS , and run your app, and then , you will see the icon of debugging in the process of your app , uncheck it and it will work ;
使用透视DDMS,运行你的应用程序,然后,你会在你的应用程序进程中看到调试的图标,取消勾选它就可以运行了;
if id didn't work , open the perspective Debug ,then, disable all the breakpoints , and it will work
如果 id 不起作用,打开透视图 Debug ,然后禁用所有断点,它将起作用
回答by Haphazard
Restart Eclipse and the emulator. That always works for me.
重新启动 Eclipse 和模拟器。那总是对我有用。