We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d54d25 commit b14877cCopy full SHA for b14877c
1 file changed
packages/debugger/src/robotcode/debugger/run.py
@@ -114,11 +114,10 @@ def start_debugpy(
114
if port != debugpy_port:
115
_logger.warning(lambda: f"start debugpy session on port {port}")
116
117
- # this is set by vscode for non config debugpy sessions, we don't need it, so remove it
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"]
+ # remove unwanted env variables
+ for env_var in ["DEBUGPY_ADAPTER_ENDPOINTS", "VSCODE_DEBUGPY_ADAPTER_ENDPOINTS"]:
+ if env_var in os.environ:
+ del os.environ[env_var]
122
123
if enable_debugpy(port, addresses):
124
global config_done_callback
0 commit comments