Commit 3004872 1 parent 65e254a commit 3004872 Copy full SHA for 3004872
File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 474
474
"debugSocketPath" : {
475
475
"type" : " string" ,
476
476
"description" : " The path to the debug socket. This is used to connect to the debugger"
477
+ },
478
+ "debugPort" : {
479
+ "type" : " number" ,
480
+ "description" : " The port to use to connect to the debugger"
481
+ },
482
+ "debugHost" : {
483
+ "type" : " string" ,
484
+ "description" : " The host to use to connect to the debugger"
477
485
}
478
486
}
479
487
}
Original file line number Diff line number Diff line change @@ -189,6 +189,18 @@ export class Debugger
189
189
private async attachDebuggee (
190
190
session : vscode . DebugSession ,
191
191
) : Promise < vscode . DebugAdapterDescriptor > {
192
+ const debugPort = session . configuration . debugPort ;
193
+
194
+ if ( debugPort ) {
195
+ const debugHost = session . configuration . debugHost ;
196
+
197
+ if ( debugHost ) {
198
+ return new vscode . DebugAdapterServer ( debugPort , debugHost ) ;
199
+ }
200
+
201
+ return new vscode . DebugAdapterServer ( debugPort ) ;
202
+ }
203
+
192
204
// When using attach, a process will be launched using Ruby debug and it will create a socket automatically. We have
193
205
// to find the available sockets and ask the user which one they want to attach to
194
206
const sockets = await this . getSockets ( session ) ;
You can’t perform that action at this time.
0 commit comments