如何在Android的调试远程AIDL服务? [英] How to debug remote AIDL service in Android?

查看:179
本文介绍了如何在Android的调试远程AIDL服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用AIDL远程服务的来源。我也有我自己的应用程序,连接到该服务。我同时调试两个应用程序,但远程服务中,我只能在生成AIDL文件(存根和代理)命中断点,但我不能打远程服务的真正方法。 什么原因?也许我做错了什么?

I have sources of a remote service which is using AIDL. Also I have my own app that connects to that service. I debug two apps simultaneously, but inside the remote service I can hit breakpoints only in generated AIDL file (stub and proxy), but I can't hit the real methods of the remote service. What can be the reason? Maybe I'm doing something wrong?

谢谢!

推荐答案

这是因为我想这一段时间,但是从内存我想我所做的是:

It's a while since I tried this, but from memory I think what I did was :

我在源代码中设置的断点,开始了它使用的远程服务的应用程序,然后去了DDMS视角和选择相应的服务进程。然后点击这使断点触发小绿虫图标。

I set the breakpoints in the source, started the app which used the remote service, then went to the DDMS perspective and selected the process corresponding to the service. Then clicked on the little green bug icon which enabled the breakpoints to trigger.

这篇关于如何在Android的调试远程AIDL服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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