Switch debugger to sockets and support unicode (#13004)

This commit is contained in:
Philipp Moritz
2020-12-20 12:10:28 -08:00
committed by GitHub
parent d6e243ad46
commit bf6577c8f4
3 changed files with 32 additions and 5 deletions
+2 -5
View File
@@ -6,7 +6,6 @@ import logging
import os
import subprocess
import sys
from telnetlib import Telnet
import time
import urllib
import urllib.parse
@@ -172,8 +171,7 @@ def continue_debug_session():
ray.experimental.internal_kv._internal_kv_del(key)
return
host, port = session["pdb_address"].split(":")
with Telnet(host, int(port)) as tn:
tn.interact()
ray.util.rpdb.connect_pdb_client(host, int(port))
ray.experimental.internal_kv._internal_kv_del(key)
continue_debug_session()
return
@@ -215,8 +213,7 @@ def debug(address):
ray.experimental.internal_kv._internal_kv_get(
active_sessions[index]))
host, port = session["pdb_address"].split(":")
with Telnet(host, int(port)) as tn:
tn.interact()
ray.util.rpdb.connect_pdb_client(host, int(port))
@cli.command()