Cocos2d iphone 适当的调试给我附加错误

Cocos2d iphone 适当的调试给我附加错误,cocos2d-iphone,gdb,apportable,Cocos2d Iphone,Gdb,Apportable,环境:OSX10.9,XCode 4.6.3 tweejump git:(master) ✗ apportable --version Apportable SDK version release_1.0.31 (53ea42fec9b094b91c988f3bfde6dff8ba683a4d starter) clang version 7fc8b05e4f57f61dbbbe5c8e62581b0e0c42941e gdb version ff0611b8b721b3bf393

环境:OSX10.9,XCode 4.6.3

tweejump git:(master) ✗ apportable --version      

Apportable SDK version release_1.0.31 (53ea42fec9b094b91c988f3bfde6dff8ba683a4d starter)
clang version 7fc8b05e4f57f61dbbbe5c8e62581b0e0c42941e
gdb version ff0611b8b721b3bf393c655c7d147de52cc850ac
android sdk version r21.0.1.1
android ndk version r8d.1
unknown ninja
我下载了tweetjump构建了它并安装了这个游戏。 然后我想检查是否可以使用

apportable just_debug

所有这两个命令给了我相同的信息

building with TARGET_ARCH_ABI:armeabi ARM_NEON:False
Building to /Users/xxx/.apportable/SDK/Build/android-armeabi-debug
Loading configuration.
Finished parsing configuration.
scons: Building targets ...
Debugging...
Starting: Intent { cmp=com.iplayful.tweejump/com.apportable.activity.VerdeActivity (has extras) }
Warning: Activity not started, its current task has been brought to the front

Failed to load one the Breakpoints files:
/Users/xxx/workspace/tweejump/tweejump.xcodeproj/xcuserdata/xxx.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
/Users/xxx/workspace/tweejump/tweejump.xcodeproj/xcuserdata/xxx.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

Attaching to pid 8085
Cannot attach to lwp 8085: Operation not permitted (1)
Exiting
我看到了一些run作为答案,但android新手如何解决这个问题呢。我可以有一个循序渐进的教程吗

编辑1:

设备:三星SCH-I739

安卓版本:4.1.2

编辑2:

我搜索并找到了一个调试解决方案:

$ adb shell
$ su
$ cd /data/data/com.iplayful.tweejump/lib/gdbserver :1111 --attach 26337
在我的Mac中:

$ ~/.apportable/toolchain/macosx/gdb/bin/arm-elf-linux-gdb 
(gdb) file ./gdb/app_process
(gdb) shell adb forward tcp:1111 tcp:1111
(gdb) target remote :1111
(gdb) continue
然后,gdb连接到gdbserver

但是gdb找不到符号,所以这是第二个问题


若我使用这种方法调试游戏,那个么在哪里可以找到游戏的符号和库

设备上运行的gdbserver似乎状态不好

尝试重新启动设备,然后
apportable just\u debug


如果仍然存在问题,请将Android设备和Android版本添加到问题中。

感谢apportable付出的巨大努力。虽然由于时间的限制,我没能制作出android版本的应用程序。
$ ~/.apportable/toolchain/macosx/gdb/bin/arm-elf-linux-gdb 
(gdb) file ./gdb/app_process
(gdb) shell adb forward tcp:1111 tcp:1111
(gdb) target remote :1111
(gdb) continue