Debugging Android NDK C/C++ code in Eclipse - breakpoints are not hit

后端 未结 6 638
遥遥无期
遥遥无期 2020-12-01 14:59

I downloaded Android SDK Bundle for Linux and Android NDK. ADT was installed, I installed CDT.

I created a Android project and added native support (jni). Then I wro

6条回答
  •  爱一瞬间的悲伤
    2020-12-01 16:03

    consider adding:

    android.os.Debug.waitForDebugger();

    before your native call, this makes your app wait until the debugger attaches, could help you avoid sleeping / using a button.

提交回复
热议问题