mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 15:16:33 +00:00
Replace debuger with debugpy (#1872)
This commit is contained in:
parent
ad988f2a24
commit
bef4034ab8
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user