简体   繁体   中英

How can I do remote debugging in Xcode 4?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM