user1908860
user1908860

Reputation: 519

How to get C++ backtrace on Android

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.

Upvotes: 2

Views: 2905

Answers (1)

Mārtiņš Možeiko
Mārtiņš Možeiko

Reputation: 12927

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.

Upvotes: 2

Related Questions