如何在 Xcode 4 中进行远程调试?
有没有办法在 Xcode 4 中进行远程调试?这个问题之前的答案是针对 Xcode 3 的,Apple 删除了 Xcode 指南中涵盖远程调试的特定调试(我认为)。
为了好玩,我一直使用 lldb
来完成此操作,但如果有一种使用 gdb
的方法那就太好了。到目前为止,我已经能够像这样在远程计算机上启动调试服务器
/usr/bin/ssh -l ${REMOTE_USER} -f ${REMOTE_HOST} "/Developer/usr/bin/debugserver localhost:12345"
然后我可以从终端使用 lldb 手动登录并调试掉。我希望能够做的是至少在 Xcode 中启动一个裸 lldb
会话,然后手动处理连接 connect://hostname:port
。
Is there a way to do remote debugging in Xcode 4? The previous answers to this question were for Xcode 3 and Apple removed the specific debugging in Xcode guide that (I assume) covered remote debugging.
For kicks I've been doing this with lldb
, but if there's a way with gdb
that'd be great. So far, I've been able to start a debug server on the remote machine like so
/usr/bin/ssh -l ${REMOTE_USER} -f ${REMOTE_HOST} "/Developer/usr/bin/debugserver localhost:12345"
And I can then manually log in with lldb
from the Terminal and debug away. What I'd like to be able to do is at the very least start a bare lldb
session within Xcode and then manually to process connect connect://hostname:port
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Xcode 4 目前不支持远程 Mac 调试。即使您能够破解 Xcode 来与远程调试服务器通信,也不能保证 IDE 或远程调试服务器能够完全或正确地处理与它的交互。
Xcode 4 doesn't currently support remote Mac debugging. Even if you were able to hack Xcode to talk to a remote debugserver, there's no guarantee that interaction with it would be fully or properly handled by the IDE or the remote debugserver.