我的c ++代码中有一些未执行的断点。我没有运气,我已经完成了以下步骤:
1)AndroidManifest.xml添加了<application android:debuggable="true>
2)Ran ndk-build NDK_DEBUG=1
生成gdb.setup和gdbserver
3)在加载本机库之前添加了android.os.Debug.waitForDebugger();
。这可能有所帮助。
4)在Application.mk
中添加APP_OPTIM := debug
5)跑adb pull /system/bin/linker <your_project_base_dir>/obj/local/armeabi/linker
6)在运行配置中添加了Android Native并运行该项目。
然而,事实上并没有发生任何事情。我遗失的任何建议或步骤?或者有关此事的任何资源?