在调试服务类不工作?是什么导致这个问题呢? [英] Debugging not working in a service class ?? what can cause this issue?

查看:117
本文介绍了在调试服务类不工作?是什么导致这个问题呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然间我不能够调试任何东西,我的,即使我把断点各地服务正在做的..但记录显示,所有的线路越来越执行的..谁能告诉我这可能是导致这issue..i我使用Eclipse和我已经设置为自动生成。

All of a sudden i am not able to debug anything that i am doing in a service even though i put breakpoints all over.. but logging shows that all the lines are getting executed.. Can someone tell me what could be causing this issue..i am using eclipse and i have set set to "Build automatically"..

推荐答案

你有一个活动这是在您的应用程序开始启动的?

Do you have an Activity which is launched at the beginning of your application ?

如果您有没有在Eclipse中使用DDMS工具来手动激活对过程的调试。

If not you have to manually activate the debug on your process by using the DDMS tool in Eclipse.

在DDMS->设备,检查过程中(该行包含您的应用程序的包名),选中它,然后点击调试按钮。调试图标将出现在过程附近,那么你应该能够在你的服务使用断点

In DDMS->Devices, check your process (the line contains the package name of your app), select it and then click on the debug button. A debug icon will appear near your process, then you should be able to use breakpoints in your Service.

这篇关于在调试服务类不工作?是什么导致这个问题呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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