The adt plugin has miserable c++ debugging support in my experience. To make it work, do the following:
- Use the NDK_DEBUG=1 flag when you build with ndk-build.
- Some say you need to set android:debuggable="true" on the application tag in your AndroidManifest.xml file. Not sure that this is true but it cant hurt.
- if you have an Application.mk file, make sure it has APP_OPTIM := debug, not release.
- Make sure eclipse knows where your ndk is: Windows->Preferences->Android->NDK and enter the root directory.
- Create a new debug configuration in eclipse by clicking on the arrow next to the bug icon --> debug configurations --> new config. Select your project and the rest of the defaults should be fine. Debug using this config when you debug.
The above steps makes it work but its pretty slow. I find using gdb directly works better.
Let me know if you have any issues.
-Jim
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/d/optout.