从 iPhone 中的设备调试应用程序?
我正在从设备调试 iPhone 应用程序。此时控制台上打印出以下消息:
[Session started at 2011-03-30 11:15:42 +0530.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Fri Oct 22 04:12:10 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys001
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-182-66
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
Error launching remote program: failed to get the task for process 173.
Error launching remote program: failed to get the task for process 173.
The program being debugged is not being run.
The program being debugged is not being run.
如何解决这个问题?
I was debugging an iPhone application from the device. At that time the following message was printed on the console:
[Session started at 2011-03-30 11:15:42 +0530.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Fri Oct 22 04:12:10 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys001
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-182-66
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
Error launching remote program: failed to get the task for process 173.
Error launching remote program: failed to get the task for process 173.
The program being debugged is not being run.
The program being debugged is not being run.
How to solve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否正在尝试调试临时或应用程序商店构建?我在这些情况下看到过这个错误。切换到调试配置,我认为它会起作用。
Are you trying to debug an ad hoc or app store build? I've seen this error in those cases. Switch to a Debug configuration and I think it'll work.