I am trying to set up remote debugging for input methods using Xcode. For starters, I'm trying to use Apple's sample, but am having a number of issues.

One is that I am not sure where/how to set up the shared build location in the case of an input method. To run an input method, you need to drop it into Library"Input Methods", but remote debugging usually suggests setting up a shared location like /Users/Shared/ Projects or the like. Can input methods be run from such a location during debugging?

Secondly, I'm confused about the use of symbolic links for the latter (shared location). I have authorized access using ssh-keygen. That works fine. The problem is that when I try to debug gdb says the executable is not found based on the symbolic link I set up.

Here's where I'm unclear. If the LOCAL computer (the one that will be used to develop and run the debugging) has its build location set to:

/Users/Shared/MyInputMethod

then on REMOTE (the computer used to execute the input method during debugging), should the link be inside a folder (on REMOTE) called / Users/Shared/MyInputMethod or should the link itself be found at / Users/Shared/MyInputMethod? (My guess is at, but at this point neither approach is working.)

And is it correct to have the link placed on REMOTE (the executable host) point to:

/Volumes/<LOCAL COMPUTER NAME>/Users/Shared/MyInputMethod ???

Thanks for looking.

(PS: I've already done the step of setting up remote debugging in Xcode and that seems to work. Problem is the link files not in the correct location.) When I set links as described above, the console errors are as follows (project called NumberInput0):

(ssh login succeeds)....
This GDB was configured as "powerpc-apple-darwin"./Users/Shared/ NumberInput0/Debug/NumberInput.app/Contents/MacOS/NumberInput: No such file or directory. /Users/Shared/NumberInput0/Debug/NumberInput.app/Contents/MacOS/ NumberInput: No such file or directory.
/Users/Shared/NumberInput0/Debug: No such file or directory.
sharedlibrary apply-load-rules all
(gdb) run
Running…
No executable file specified.
Use the "file" or "exec-file" command.
No executable file specified.
Use the "file" or "exec-file" command.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to