Eclipse 也可DEBUG JNI~
Enable NDK Debug to add build command NDK_DEBUG=1
at Eclipse -> Project -> Properties -> C/C++ BuildEclipse -> Run -> Debug As -> -> Android Native Appliation
set breakpoint at c/c++ source code.
但...有限制:
1.雖然可以看變數值 .但要自己手動增加到expression視窗, 很不方便,有時jni導致當機根本來不及看....
2.Unfortunately, we can’t debug Java codes and Native code at the same time
Can’t select both Android Application and when debugging,好不幸~~~
留言
張貼留言