From 8eafaeac2a2498568c8e474317664067e1ae623b Mon Sep 17 00:00:00 2001 From: Ricky Ng-Adam Date: Wed, 21 Aug 2024 09:23:55 -0400 Subject: [PATCH] issue #3182: introduce DAP_HOST and DAP_PORT Signed-off-by: Ricky Ng-Adam --- aries_cloudagent/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aries_cloudagent/__main__.py b/aries_cloudagent/__main__.py index 2677b8cc8e..6b4ebc76f7 100644 --- a/aries_cloudagent/__main__.py +++ b/aries_cloudagent/__main__.py @@ -20,13 +20,13 @@ def init_debug(args): # --debug to use microsoft's visual studio remote debugger if ENABLE_PTVSD or "--debug" in args: - PTVSD_HOST = os.getenv("PTVSD_HOST", "localhost") - PTVSD_PORT = os.getenv("PTVSD_PORT", 5678) + DAP_HOST = os.getenv("PTVSD_HOST", None) or os.getenv("DAP_HOST", "localhost") + DAP_PORT = os.getenv("PTVSD_PORT", None) or os.getenv("DAP_PORT", 5678) try: import debugpy - debugpy.listen((PTVSD_HOST, PTVSD_PORT)) - print(f"=== Waiting for debugger to attach to {PTVSD_HOST}:{PTVSD_PORT} ===") + debugpy.listen((DAP_HOST, DAP_PORT)) + print(f"=== Waiting for debugger to attach to {DAP_HOST}:{DAP_PORT} ===") debugpy.wait_for_client() except ImportError: print("debugpy library was not found")