1. Add debug symbols when compiling...
add "LOCAL_CFLAGS := -g" in /jni/Android.mk file -

3. In cygwin, add adb into PATH variable (if you're using windows) ...
Modify /home//.bash_profile
example:
4. Clean the project ...
1) in eclipse -

5. compile the .c files
6. In windows cmd.exe, type: "android update project -p . -s"

7. in eclipse IDE, press the debug button to start debugging ...
Debug configurations must be set properly first.
You will see the following...
Reference:
沒有留言:
張貼留言