I am able to open a remote C source file using tramp (via ssh). However, when I try to debug it using

M-x gdb
gdb -i=mi /ssh:localhost#8022:/usr/bin/httrack

I get

Current directory is /ssh:localhost#8022:/usr/bin/
Error: you did not specify -i
Debugger exited abnormally with code 127

1 Answer 1


My problem was I didn't have gdb installed on the remote side.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.