在IntelliJ IDEA中调试android jni代码 [英] Debugging android jni code in IntelliJ IDEA
问题描述
我该如何在构思中调试我的android应用程序的jni代码?
How can i debug jni code of my android application in idea?
我已经使用ndk-build和标志-NDK_DEBUG = 1构建了jni代码,但这没有帮助.想法并没有落入我在C ++代码中的断点.
I've built jni code with ndk-build and flag -NDK_DEBUG=1, but this didn't helped. Idea didn't fall in my breakpoints in c++ code.
我还尝试使用默认参数创建远程"调试并运行它.但是什么也没发生.
I also tried to create "Remote" debug with default params and run it. But nothing happened.
任何人都可以帮忙吗?逐步进行手动操作或其他操作会很有帮助.
Can anyone help ? Step by step manual or something would be very helpfull.
推荐答案
我不认为IntelliJ支持C ++开发,因此,就我所知,您无法在IntelliJ中调试C代码.如果这样做的话,那会很棒...您可以在eclipse中为jni设置一些调试环境,但这非常复杂.
I don't think IntelliJ supports C++ development, so you cannot debug your C code inside IntelliJ as far as I know. It would be great if it did though... You can set up some debugging environmnet for jni in eclipse, but it's quite complicated.
根据参考此处(例如) Android中详细介绍了eclipse中的设置NDK入门指南
这篇关于在IntelliJ IDEA中调试android jni代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!