How to get C++ backtrace on Android

孤者浪人 提交于 2019-12-11 00:53:20

问题


I am developing a game on android using native C++ and NDK(with eclipse) to build it. I found very difficult to debug the native c++ code with eclipse and NDK when it hits a crash, is there any way to get C++ backtrace when programe crashes ? Please advise.


回答1:


You can do that with ndk-stack executable that is located in root of NDK. Read the docs about it in docs/NDK-STACK.html file.



来源:https://stackoverflow.com/questions/13924582/how-to-get-c-backtrace-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!