I made a bit of a progress and I want to share what I did.
When you get errors like this on the LogCat, they are saved on $PROJECT_PATH/obj/local/armeabi where $PROJECT_PATH is the path to your cocos2d-x android project. To symbolicate the messages to something understandable, you can use the ndk-stack tool.
Open up the Terminal (or Cygwin, not sure though) and type in
where:
$ANDROID_NDK is the path to your android NDK
PROJECT_PATH is the path to your cocos2d-x android project
After that, you will get a stack trace which points to certain files and line number where the crash occurred. Something like this:
From the dump above, you can see that on Stack frame #01 points to TowerObj.cpp:150, so I can now go to TowerObj.cpp at line 150 and fix stuff.
Hope this helps.
'잡다한것들전부 > 팁' 카테고리의 다른 글
| [디자인패턴] cocos2d-x 싱글톤 싱글턴 패턴 구현 (0) | 2014.01.08 |
|---|---|
| [디버깅] GDB 사용하기 (0) | 2014.01.07 |
| [디버깅] ndk stack 사용법 (0) | 2014.01.07 |
| [디버깅] visual studio에서 GDB 실행? (0) | 2014.01.07 |
| [디버깅] cocos2d-x Debug 팁 (0) | 2014.01.07 |
| cocos2d-x 소스 코드 주소 (0) | 2014.01.07 |


