File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
packages/debugger/src/robotcode/debugger Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -114,21 +114,23 @@ def start_debugpy(
114114 if port != debugpy_port :
115115 _logger .warning (lambda : f"start debugpy session on port { port } " )
116116
117+ # 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" ]
119+
117120 if enable_debugpy (port , addresses ):
118121 global config_done_callback
119122
120123 def connect_debugpy (server : "DebugAdapterServer" ) -> None :
121- if not os .environ .get ("DEBUGPY_ADAPTER_ENDPOINTS" , None ):
122- server .protocol .send_event (
123- Event (
124- event = "debugpyStarted" ,
125- body = {
126- "port" : port ,
127- "addresses" : addresses ,
128- "processId" : os .getpid (),
129- },
130- )
124+ server .protocol .send_event (
125+ Event (
126+ event = "debugpyStarted" ,
127+ body = {
128+ "port" : port ,
129+ "addresses" : addresses ,
130+ "processId" : os .getpid (),
131+ },
131132 )
133+ )
132134
133135 if wait_for_debugpy_client :
134136 app .verbose (f"Wait for debugpy incomming connections listening on { addresses } :{ port } " )
You can’t perform that action at this time.
0 commit comments