简体   繁体   English

调试ndk Jni是Android应用程序的PRT

[英]Debug ndk Jni that is a prt of Android application

I have an application that is partly written in c++ and compiled through the ndk, that part located on separate jni folder. 我有一个应用程序,部分用c ++编写,并通过ndk编译,该部分位于单独的jni文件夹中。 My question is: can I debug the c++ code as part of my application? 我的问题是:我可以在应用程序中调试c ++代码吗? can I start debug on the sdk and after jump to breakpoint on my jni code? 我可以在sdk上启动调试,并在跳转至我的jni代码的断点后启动吗?

是的, 这是 Martin Hejna的礼貌

There is a book describing that stuff http://www.amazon.com/Android-Beginners-Guide-Sylvain-Ratabouil/dp/1849691525 . 有一本书描述了这些东西http://www.amazon.com/Android-Beginners-Guide-Sylvain-Ratabouil/dp/1849691525 It helped me but overall C++ debugging in Android is painful, I use printfs instead when possible.. 它对我有帮助,但是在Android中进行整体C ++调试很痛苦,我尽可能使用printfs。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM