Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎样对插件的消息调试并下断点 如:LAUNCH_ACTIVITY ? #232

Open
11245702 opened this issue Jul 7, 2016 · 2 comments
Open

Comments

@11245702
Copy link

11245702 commented Jul 7, 2016

我测试在PluginCallback 下断点没有效果 ,应该这是宿主程序,不是插件程序,但调试触发插件的消息,应该怎么弄呢?

@11245702
Copy link
Author

11245702 commented Jul 7, 2016

这是日志 :分别为两个进程 :宿主 28599,插件: 29969 ,我想调试 29969 的 LAUNCH_ACTIVITY 的消息,在Androidstudio 中对PluginCallback下了断点但无法断下来,请教大家调试插件程序的方法

I/PluginCallback(28599): handleMessage(101,PAUSE_ACTIVITY) cost 1708 ms
I/HookedMethodHandler(29969): doHookInner method(android.app.IActivityManager.startService) cost 43 ms
I/HookedMethodHandler(29969): doHookInner method(android.app.IActivityManager.bindService) cost 26 ms
I/PluginHelper(29969): Init plugin in process cost 1144 ms
I/PluginCallback(29969): handleMessage(140,TRIM_MEMORY) cost 1 ms
I/PluginCallback(29969): handleMessage(100,LAUNCH_ACTIVITY) cost 3 ms

@Howie-hxu
Copy link

你可以这样做,先在load application的地方做一个while(true),然后启动程序,跑插件程序,应该这个时候就会被while卡住。使用debug attach到client进程,再通过跳转到指定行这样的手段强制运行即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants