如何在Xcode 4中进行远程调试? [英] How can I do remote debugging in Xcode 4?

查看:186
本文介绍了如何在Xcode 4中进行远程调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在Xcode 4中进行远程调试?这个问题的以前的答案是Xcode 3,苹果删除了Xcode指南中的具体调试(我假设)涵盖远程调试。



对于我一直在做的踢这与 lldb ,但如果有一种方式与 gdb ,那将是伟大的。到目前为止,我已经能够在远程机器上启动一个调试服务器,如此


/ usr / bin / ssh -l $ {REMOTE_USER} -f $ {REMOTE_HOST}/ Developer / usr / bin / debugserver localhost:12345


然后我可以手动从终端登录 lldb 并调试。我想要做的是至少在Xcode中开始一个裸露的 lldb 会话,然后手动进入 process connect connect:/ / hostname:port

解决方案

Xcode 4目前不支持远程Mac调试。即使您能够窃取Xcode与远程调试服务器通话,也不能保证与IDE或远程调试服务器完全或正确地进行交互。


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.

解决方案

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.

这篇关于如何在Xcode 4中进行远程调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆