mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix #579: "Cannot assign requested address" error is not being propagated to VS Code
This commit is contained in:
parent
3a9f7d64c4
commit
e59195d6a4
1 changed files with 9 additions and 1 deletions
|
|
@ -382,7 +382,15 @@ class Client(components.Component):
|
|||
launcher_path = request("debugLauncherPath", os.path.dirname(launcher.__file__))
|
||||
adapter_host = request("debugAdapterHost", "127.0.0.1")
|
||||
|
||||
servers.serve(adapter_host)
|
||||
try:
|
||||
servers.serve(adapter_host)
|
||||
except Exception as exc:
|
||||
raise request.cant_handle(
|
||||
"{0} couldn't create listener socket for servers: {1}",
|
||||
self.session,
|
||||
exc,
|
||||
)
|
||||
|
||||
launchers.spawn_debuggee(
|
||||
self.session,
|
||||
request,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue