Skip navigation.
 
mltrouble debugging input method remotely
FROM : Daniel Child
DATE : Thu May 01 19:27:09 2008

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.

Related mailsAuthorDate
mltrouble debugging input method remotely Daniel Child May 1, 19:27
mlRe: trouble debugging input method remotely Daniel Child May 1, 19:55
mlRe: trouble debugging input method remotely Daniel Child May 1, 20:31
mlRe: trouble debugging input method remotely j o a r May 1, 20:37