Closed mrunhap closed 3 months ago
Hey,
If I would guess whats going on is that ports that dape
is trying to connect to is not forwarded.
Unfortunately dlv
does not allow for pipe connections, only TCP (AFAIK).
So what is happening here is that dape
is starting dlv
on the remote my
machine then trying to connect from your local machine to my
on port 56425.
DAP server listening at: 127.0.0.1:56425
Unable to connect to server my:56425
I would guess that port 56425
is not open to your local machine.
I would recommend you use "Local Port Forwarding":
ssh -L 5555:localhost:5555 my
.dir-local-variable
at the remote host for dape-command
with value (dlv host "localhost" port 5555)
or run dape
command with dlv host "localhost" port 5555
. Dape will still start dlv at the remote host but connect through the localhost port tunnel . (To be extra clear command-cwd
needs to the remote host tramp path "/ssh:my:"
.)Thanks for your reply, it works with port forwarding.
I have a remote server and config in ~/.ssh/config
When I open a remote go file and run dape, it says unable to connect
I already use firewalld and make this server accept all from my localhost. I also try to change config about dlv in dape-configs, host from 127.0.0.1 -> 0.0.0.0, and run dape again:
And I'm stuck here, any advice :) ?