Replace debuger with debugpy (#1872)

This commit is contained in:
Pascal Vizeli 2020-08-05 15:24:53 +02:00 committed by GitHub
parent ad988f2a24
commit bef4034ab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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: