File tree Expand file tree Collapse file tree 1 file changed +40
-1
lines changed Expand file tree Collapse file tree 1 file changed +40
-1
lines changed Original file line number Diff line number Diff line change 1252
1252
{
1253
1253
"type" : " swift" ,
1254
1254
"label" : " Swift Debugger" ,
1255
+ "variables" : {
1256
+ "PickProcess" : " lldb-dap.pickProcess"
1257
+ },
1255
1258
"configurationAttributes" : {
1256
1259
"launch" : {
1257
1260
"required" : [
1384
1387
},
1385
1388
"pid" : {
1386
1389
"type" : [
1390
+ " string" ,
1387
1391
" number"
1388
1392
],
1389
1393
"description" : " System process ID to attach to."
1454
1458
}
1455
1459
}
1456
1460
}
1457
- }
1461
+ },
1462
+ "configurationSnippets" : [
1463
+ {
1464
+ "label" : " Swift: Launch" ,
1465
+ "description" : " " ,
1466
+ "body" : {
1467
+ "type" : " swift" ,
1468
+ "request" : " launch" ,
1469
+ "name" : " ${2:Launch Swift Executable}" ,
1470
+ "program" : " ^\"\\ ${workspaceRoot}/.build/debug/${1:<program>}\" " ,
1471
+ "args" : [],
1472
+ "env" : {},
1473
+ "cwd" : " ^\"\\ ${workspaceRoot}\" "
1474
+ }
1475
+ },
1476
+ {
1477
+ "label" : " Swift: Attach to Process" ,
1478
+ "description" : " " ,
1479
+ "body" : {
1480
+ "type" : " swift" ,
1481
+ "request" : " attach" ,
1482
+ "name" : " ${2:Attach to Swift Executable}" ,
1483
+ "pid" : " ^\"\\ ${command:PickProcess}\" "
1484
+ }
1485
+ },
1486
+ {
1487
+ "label" : " Swift: Attach" ,
1488
+ "description" : " " ,
1489
+ "body" : {
1490
+ "type" : " swift" ,
1491
+ "request" : " attach" ,
1492
+ "name" : " ${2:Attach to Swift Executable}" ,
1493
+ "program" : " ^\"\\ ${workspaceRoot}/.build/debug/${1:<program>}\" "
1494
+ }
1495
+ }
1496
+ ]
1458
1497
}
1459
1498
]
1460
1499
},
You can’t perform that action at this time.
0 commit comments