From 43df3499d062df49b0cd70499bd7c50ca3b8f298 Mon Sep 17 00:00:00 2001 From: Ricky Ng-Adam Date: Mon, 19 Aug 2024 16:25:11 -0400 Subject: [PATCH] issue #3182: migrate from ptvsd to debugpy --- aries_cloudagent/__main__.py | 4 ++-- poetry.lock | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aries_cloudagent/__main__.py b/aries_cloudagent/__main__.py index 469dd073c7..e6caab4643 100644 --- a/aries_cloudagent/__main__.py +++ b/aries_cloudagent/__main__.py @@ -24,12 +24,12 @@ def init_debug(args): PTVSD_PORT = os.getenv("PTVSD_PORT", 5678) try: import debugpy - debugpy.listen((PTVSD_HOST, PTVSD_PORT)) print("=== Waiting for debugger to attach ===") debugpy.wait_for_client() except ImportError: - print("debugpy library was not found") + print("debugpy library was not found") + if ENABLE_PYDEVD_PYCHARM or "--debug-pycharm" in args: try: diff --git a/poetry.lock b/poetry.lock index 7cdc3855c8..1d07ea56ec 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2883,4 +2883,4 @@ didcommv2 = ["didcomm-messaging"] [metadata] lock-version = "2.0" python-versions = "^3.12" -content-hash = "2992c4780f0417ff3b8e233bcf9eb57edf2bcdfd8a4376f8452fb085e9f777e9" +content-hash = "90fd730c41c3913cceec9f2c1373b49017c38819aa053482ecb2f51c445ca0aa"