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 1358
1358
{
1359
1359
"type" : " swift" ,
1360
1360
"label" : " Swift Debugger" ,
1361
+ "variables" : {
1362
+ "PickProcess" : " lldb-dap.pickProcess"
1363
+ },
1361
1364
"configurationAttributes" : {
1362
1365
"launch" : {
1363
1366
"required" : [
1490
1493
},
1491
1494
"pid" : {
1492
1495
"type" : [
1496
+ " string" ,
1493
1497
" number"
1494
1498
],
1495
1499
"description" : " System process ID to attach to."
1560
1564
}
1561
1565
}
1562
1566
}
1563
- }
1567
+ },
1568
+ "configurationSnippets" : [
1569
+ {
1570
+ "label" : " Swift: Launch" ,
1571
+ "description" : " " ,
1572
+ "body" : {
1573
+ "type" : " swift" ,
1574
+ "request" : " launch" ,
1575
+ "name" : " ${2:Launch Swift Executable}" ,
1576
+ "program" : " ^\"\\ ${workspaceRoot}/.build/debug/${1:<program>}\" " ,
1577
+ "args" : [],
1578
+ "env" : {},
1579
+ "cwd" : " ^\"\\ ${workspaceRoot}\" "
1580
+ }
1581
+ },
1582
+ {
1583
+ "label" : " Swift: Attach to Process" ,
1584
+ "description" : " " ,
1585
+ "body" : {
1586
+ "type" : " swift" ,
1587
+ "request" : " attach" ,
1588
+ "name" : " ${2:Attach to Swift Executable}" ,
1589
+ "pid" : " ^\"\\ ${command:PickProcess}\" "
1590
+ }
1591
+ },
1592
+ {
1593
+ "label" : " Swift: Attach" ,
1594
+ "description" : " " ,
1595
+ "body" : {
1596
+ "type" : " swift" ,
1597
+ "request" : " attach" ,
1598
+ "name" : " ${2:Attach to Swift Executable}" ,
1599
+ "program" : " ^\"\\ ${workspaceRoot}/.build/debug/${1:<program>}\" "
1600
+ }
1601
+ }
1602
+ ]
1564
1603
}
1565
1604
]
1566
1605
},
You can’t perform that action at this time.
0 commit comments