-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to discover correct configs for debugging over TRAMP (specifically Rust) #136
Comments
Hey! When debugging with an adapter that connects with TCP like codelldb
scp -r user@local:.emacs.d/debug-adapters/codelldb user@remote:.emacs.d/debug-adapters/codelldb Make sure that codelldb is executable As long as the current buffer is on the remote machine the defualt
When calling Use the keyword Another simpler approach to tramp debugging is to use a debugger which |
Thanks, I think I'm making progress! I am using WSL-2, so technically the ports are automatically forwarded. I also checked and the adapter is present only on the remote machine, and it is executable. I think I was using
Reading the Messages buffer I think this error may also be present before, when launching Eglot, that however works fine, so I don't know if it's a false positive. Trying with C-h o, I see that effectively I have nothing called jsonrpc--request-continuations. Am I missing a package? |
Hey sorry for the late response, this seams like your package manager is installing the correct version of
Should open an file containing ;;; jsonrpc.el --- JSON-RPC library -*- lexical-binding: t; -*-
;; Copyright (C) 2018-2024 Free Software Foundation, Inc.
;; Author: João Távora <[email protected]>
;; Keywords: processes, languages, extensions
;; Version: 1.0.25
;; Package-Requires: ((emacs "25.2"))
If you are using (use-package jsonrpc :straight t) |
No worries at all, thank you for your answer! You might be right, I
remember it's not the first time I have small misalignments with jsonrpc
versions (though I can't remember where I had them). I'm away from home too
right now, next week I'll check it and I'll let you know, thanks! 👍
|
Ok, I checked and apparently I already have version 1.0.25 of I have a couple of reproducible examples, at least on my machine:
when I give
but the debug seems not to be running (
and the messages are
but it still hangs. In this case, the backtrace is
while the messages are
PS the actual code I run to change the config is from helpful-describe-variable > set (which suggests a setq), I placed the new config at the front. Now
|
Another thing: checking the buffer
but I am sure the program is here and executable
|
First of thank you for supplying all the debug information for me to go on. Another dape user had similar issues see #142 with eglot after jsonrpc update. This error The hanging is unrelated to the eglot error thou.
It seams like I would suggest you try out
|
You're very welcome!
Thanks, I manually installed the MELPA version of Eglot ( More tests!
Would it help if I activated the server manually? For instance, I tried running
and that got me
my Linux terminal shows
and the messages buffer
the dape REPL
and the Messages buffer
I don't know if it's an improvement 😆
Sorry, I didn't understand here, shouldn't |
Hi, first thank you for your work! I'm trying to set up
dape
to work with Rust programs, I remember doing it successfully a few months ago, but now I need to do the same connecting to a WSL machine. Specifically:Windows 11, running Emacs
GNU Emacs 29.2 (build 2, x86_64-w64-mingw32) of 2024-02-01
WSL Ubuntu-22.04, with installed codelldb as shown in the README, and exposing the ssh server on port 2020.
I usually can connect via TRAMP using the path
/plink:[email protected]#2020:~/
. After a bit of thinkering, I managed to customize thedape-config
to(notice how I prefixed the command path with the TRAMP prefix). When launching
dape
, I insert the stringcodelldb-rust command-cwd "/plink:[email protected]#2020:~/exercism/rust/luhn/target/debug/" :program "luhn"
, and I obtain the error:so I presume dape is not correctly detecting that the server is on a remote machine. Maybe it is similar to #109 or #105 , but I don't know which port I should specify. A couple of tries:
codelldb-rust command-cwd "/plink:[email protected]#2020:~/exercism/rust/luhn/target/debug/" port 2020 :program "luhn"
codelldb-rust command-cwd "/plink:[email protected]#2020:~/exercism/rust/luhn/target/debug/" :port 2020 :program "luhn"
So, which configuration should I change to make dape launch via TRAMP a remote debug server? In this case, everything resides on the target machine, the only thing external is Emacs. Should I do an ssh forwarding? But on which poort? Thanks!
The text was updated successfully, but these errors were encountered: