如何获得C ++在Android回溯 [英] How to get C++ backtrace on Android

查看:109
本文介绍了如何获得C ++在Android回溯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发在Android上使用本地C ++和NDK(与Eclipse)来构建它一个游戏。我发现很难调试本地C ++ code Eclipse和NDK当它击中崩溃,有没有什么办法让C ++回溯PROGRAME崩溃时?请指教。

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.

推荐答案

可以做到这一点与位于在NDK根NDK堆栈可执行文件。阅读关于它的文档中的文档/ NDK-STACK.html 文件。

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.

这篇关于如何获得C ++在Android回溯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆