From bef4034ab8532727cb2fbc6d4c3595c390d1626d Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 5 Aug 2020 15:24:53 +0200 Subject: [PATCH] Replace debuger with debugpy (#1872) --- requirements.txt | 2 +- supervisor/bootstrap.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0e5b15dfe..57f6d2f08 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,11 +5,11 @@ cchardet==2.1.6 colorlog==4.2.1 cpe==1.2.1 cryptography==3.0 +debugpy==1.0.0b12 docker==4.2.2 gitpython==3.1.7 jinja2==2.11.2 packaging==20.4 -ptvsd==4.3.2 pulsectl==20.5.1 pytz==2020.1 pyudev==0.22.0 diff --git a/supervisor/bootstrap.py b/supervisor/bootstrap.py index f16e0c0b7..706e6f540 100644 --- a/supervisor/bootstrap.py +++ b/supervisor/bootstrap.py @@ -274,14 +274,14 @@ def supervisor_debugger(coresys: CoreSys) -> None: if not coresys.config.debug: return # pylint: disable=import-outside-toplevel - import ptvsd + import debugpy _LOGGER.info("Initialize Supervisor debugger") - ptvsd.enable_attach(address=("0.0.0.0", 33333), redirect_output=True) + debugpy.listen(("0.0.0.0", 33333)) if coresys.config.debug_block: _LOGGER.info("Wait until debugger is attached") - ptvsd.wait_for_attach() + debugpy.wait_for_client() def setup_diagnostics(coresys: CoreSys) -> None: