This repository was archived by the owner on Jul 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 328328 "type" : " string" ,
329329 "description" : " Absolute path to a file containing environment variable definitions." ,
330330 "default" : " ${workspaceRoot}/.env"
331+ },
332+ "backend" : {
333+ "type" : " string" ,
334+ "enum" : [
335+ " default" ,
336+ " native" ,
337+ " lldb"
338+ ],
339+ "description" : " Backend used by delve. Only available in delve version 0.12.2 and above."
331340 }
332341 }
333342 }
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ interface LaunchRequestArguments extends DebugProtocol.LaunchRequestArguments {
140140 trace ?: boolean | 'verbose' ;
141141 /** Optional path to .env file. */
142142 envFile ?: string ;
143+ backend ?: string ;
143144}
144145
145146process . on ( 'uncaughtException' , ( err : any ) => {
@@ -283,11 +284,13 @@ class Delve {
283284 if ( launchArgs . init ) {
284285 dlvArgs = dlvArgs . concat ( [ '--init=' + launchArgs . init ] ) ;
285286 }
287+ if ( launchArgs . backend ) {
288+ dlvArgs = dlvArgs . concat ( [ '--backend=' + launchArgs . backend ] ) ;
289+ }
286290 if ( launchArgs . args ) {
287291 dlvArgs = dlvArgs . concat ( [ '--' , ...launchArgs . args ] ) ;
288292 }
289293
290-
291294 this . debugProcess = spawn ( dlv , dlvArgs , {
292295 cwd : dlvCwd ,
293296 env,
You can’t perform that action at this time.
0 commit comments