Skip to content

Commit 08cba92

Browse files
committed
fix(debugger): remove unnecessary environment variables for debugpy sessions
1 parent 4b58f6a commit 08cba92

File tree

1 file changed

+4
-1
lines changed
  • packages/debugger/src/robotcode/debugger

1 file changed

+4
-1
lines changed

packages/debugger/src/robotcode/debugger/run.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ def start_debugpy(
115115
_logger.warning(lambda: f"start debugpy session on port {port}")
116116

117117
# this is set by vscode for non config debugpy sessions, we don't need it, so remove it
118-
del os.environ["DEBUGPY_ADAPTER_ENDPOINTS"]
118+
if "DEBUGPY_ADAPTER_ENDPOINTS" in os.environ:
119+
del os.environ["DEBUGPY_ADAPTER_ENDPOINTS"]
120+
if "VSCODE_DEBUGPY_ADAPTER_ENDPOINTS" in os.environ:
121+
del os.environ["VSCODE_DEBUGPY_ADAPTER_ENDPOINTS"]
119122

120123
if enable_debugpy(port, addresses):
121124
global config_done_callback

0 commit comments

Comments
 (0)