Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t调试本机c++;Windows上Eclipse中的Android代码_Android_C++_Eclipse_Debugging_Android Ndk - Fatal编程技术网

Can';t调试本机c++;Windows上Eclipse中的Android代码

Can';t调试本机c++;Windows上Eclipse中的Android代码,android,c++,eclipse,debugging,android-ndk,Android,C++,Eclipse,Debugging,Android Ndk,有人知道如何在Windows上从Eclipse调试本机Android应用程序吗?看起来Linux用户没有遇到任何问题 主要目标是从Eclipse启动调试过程(每次运行后不进行任何控制台操作) 我经历了很多教程,但没有一个让我能够在C++代码中断定断点上的执行(我尝试了至少10个)。p> 我在GDB中没有CR LF问题,我有C++代码,用 NDK构建-J8 NDKJUDG=1 < /COD> Eclipse编译。我的所有断点都设置为用户单击时的反应,所以gdb应该已经连接好了。当我单击“作为本机A

有人知道如何在Windows上从Eclipse调试本机Android应用程序吗?看起来Linux用户没有遇到任何问题

主要目标是从Eclipse启动调试过程(每次运行后不进行任何控制台操作)

我经历了很多教程,但没有一个让我能够在C++代码中断定断点上的执行(我尝试了至少10个)。p> <>我在GDB中没有CR LF问题,我有C++代码,用<代码> NDK构建-J8 NDKJUDG=1 < /COD> Eclipse编译。我的所有断点都设置为用户单击时的反应,所以gdb应该已经连接好了。当我单击“作为本机Android应用程序调试”时,我得到以下输出:

warning: Could not load shared library symbols for 72 libraries, e.g. /system/bin/linker. Use the "info sharedlibrary" command to see the complete listing. Do you need "set solib-search-path" or "set sysroot"? warning: Unable to find dynamic linker breakpoint function. GDB will retry eventurally. Meanwhile, it is likely that GDB is unable to debug shared library initializers or resolve pending breakpoints after dlopen(). [New Thread 3239] [New Thread 3241] [New Thread 3242] [New Thread 3243] [New Thread 3244] [New Thread 3245] [New Thread 3246] [New Thread 3247] [New Thread 3248] The target endianness is set automatically (currently little endian) No symbol table is loaded. Use the "file" command. No symbol table is loaded. Use the "file" command. 警告:无法加载72个库的共享库符号,例如/system/bin/linker。 使用“info sharedlibrary”命令查看完整的列表。 您需要“设置solib搜索路径”还是“设置系统根”? 警告:找不到动态链接器断点函数。 GDB将最终重试。与此同时,很可能是这样 GDB无法调试共享库初始值设定项 或在dlopen()之后解析挂起的断点。 [新线程3239] [新线程3241] [新线程3242] [新线程3243] [新线程3244] [新线程3245] [新线程3246] [新线程3247] [新线程3248] 自动设置目标端度(当前为小端度) 未加载任何符号表。使用“文件”命令。 未加载任何符号表。使用“文件”命令。
有什么问题吗?

你在用MinGW吗?您安装了gdb吗?没有,我使用ndk中的ndk构建脚本编译本机代码。我假设Eclipse使用ADT插件找到gdb的正确路径,这也是NDK提供的。啊,很好,你设置了NDK的路径了吗?首选项->安卓->NDKYes,当然。我的C++代码是用Eclipse用简单的NDK构建命令在项目属性的C++构建部分中构建的。祝你好运;)