简体   繁体   中英

How to debug a native Android app?

I've installed the Sequoyah Android Native Support , and now, I can execute the debug mode. I have a breakpoint in the same line where I call a native method, so when I execute the debug Java mode, eclipse stops in this line, I execute the 'ndk-gdb', and I lunch the C/C++ debug mode, I see the console do something. But, how can I put C breakpoints? Because my C code is a .so library, so I can't put breakpoints in this file. I have a JNI floder where there are .c and .h files, but don't stops when I put breakpoints. Eclipse log recognizes breakpoints, but prints error.

break-insert com_example_pruebaffmpeg_MainActivity.c:4323 error, msg="No symbol table is loaded. Use the \\"file\\" command."

Have you tried uninstalling Sequoyah and just using the ADT? As of version 20, the Eclipse ADT plugin can debug NDK projects more easily and reliably than the old Sequoyah way of doing things.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM