如何在Xcode 4中进行远程调试? [英] How can I do remote debugging in Xcode 4?
问题描述
对于我一直在做的踢这与 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屋!