Skip to content

Commit 2663863

Browse files
HactarCEcole-miller
authored andcommitted
Fix connect.host setting being ignored by debugpy (zed-industries#43190)
Closes zed-industries#42727 Unfortunately we can only support IPv4 addresses right now because `TcpArguments` only supports an IPv4 address. I'm not sure how difficult it would be to lift this limitation. Release Notes: - Fixed `connect.host` setting being ignored by debugpy Co-authored-by: Cole Miller <cole@zed.dev>
1 parent 71ef665 commit 2663863

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/dap_adapters/src/python.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ impl PythonDebugAdapter {
368368
bail!("Cannot have two different ports in debug configuration")
369369
}
370370

371+
if let Some(hostname) = config_host {
372+
tcp_connection.host = Some(hostname.parse().context("hostname must be IPv4")?);
373+
}
371374
tcp_connection.port = config_port;
372375
DebugpyLaunchMode::AttachWithConnect { host: config_host }
373376
} else {

0 commit comments

Comments
 (0)