使用 GDB 调试 Android 本机代码非常慢
我使用 Eclipse 和 GDB (ndk-gdb) 在我刚刚移植的 Android 应用程序中调试本机 C++ 代码。在Eclipse中调试Java端还可以,但是调试C++代码就太慢了,几乎不可行。在最新的 PC 上,从一个语句过渡到下一个语句大约需要 25 秒。我还不断收到类似这样的错误
org.eclipse.cdt.debug.mi.core.cdi.MI2CDIException: Target is notponding (timed out)[]
while debug 这似乎不会对程序流程产生不利影响,但确实表明存在一些问题。还有其他人遇到过这个问题吗?
I use Eclipse and GDB (ndk-gdb) to debug native C++ code in an Android app I'm just porting. Debugging the Java side in Eclipse is ok, but debugging the C++ code is so slow that it's hardly feasible. Stepping from one statement to the next takes about 25s on an up-to-date PC. I also keep getting errors like this one
org.eclipse.cdt.debug.mi.core.cdi.MI2CDIException: Target is not responding (timed out)[]
while debugging which don't seem to adversely affect the program flow, but do indicate there is some issue. Has anyone else had this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你用的是安卓模拟器吗?如果是这样,您是否已经尝试过这些步骤来加快速度? ---> https://www.virag.si/2012/10/speeding- up-android-模拟器/
Are you using the android emulator? If so have you already tried these steps to speed it up? ---> https://www.virag.si/2012/10/speeding-up-android-emulator/