Android的JNI调试:月食:启动配置中指定的项目不是C / C ++ 1 [英] Android JNI Debug: Eclipse : Project specified in the launch configuration is not a C/C++ one
问题描述
我在Eclipse的靛蓝。我试图调试Android的Eclipse项目的JNI / C ++部分。我不希望我的Android项目在转换成显而易见的原因,一个C ++项目。我不介意将C ++性质,但我已经试过的选项到目前为止改变我的项目需要一个make文件中的C ++项目。因此,调试proceedures是,我开始一个Java的Android调试会话,启动了NDK-GDB调试服务器,然后我需要以某种方式附着在C ++调试。所以,我在除了Android的Java调试Config中创建一个C ++调试配置文件。但是,当我启动它,我得到指定的项目不是C / C ++。我应该创建一个虚拟的C ++项目只是为了让调试会话的工作?谢谢
I'm on Eclipse Indigo. I'm trying to Debug the JNI/C++ portion of an Android Eclipse Project. I don't want to convert my Android project over to a C++ project for obvious reasons. I don't mind adding C++ nature but the options I have tried so far change my project to a C++ project that needs a make file. So the debug proceedures is that I start a Java Android Debug session, startup the ndk-gdb debug server, and then I need to attach the C++ debugger somehow. So I created a C++ Debug Profile in addition to the Android Java Debug Config. But when I start it up I get Project specified is not C/C++. Should I create a dummy C++ project just to get the debug session working? Thanks
PS:我下面本指南中的步骤来调试JNI在Android中:
的http://mhandroid.word$p$pss.com/2011/01/23/using-eclipse-for-android-cc-debugging/#more-23
PS: I am following the steps in this guide to debug JNI in Android: http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-debugging/#more-23
和它并不表示有必要建立一个独立的C ++项目。
And it does not indicate the need to create a separate C++ project.
推荐答案
选项转换为C / C ++项目就是你所需要的。
The option "Convert to C/C++ project" is what you need.
这篇关于Android的JNI调试:月食:启动配置中指定的项目不是C / C ++ 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!