You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package.json
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -519,7 +519,7 @@
519
519
}
520
520
},
521
521
{
522
-
"label": "Run Pester Tests (Binary Module)",
522
+
"label": "PowerShell: Run Pester Tests (Binary Module)",
523
523
"description": "Debug a .NET binary or hybrid module by running Pester tests. Breakpoints you set in your .NET (C#/F#/VB/etc.) code will be hit upon command execution. You may want to add a compile or watch action as a pre-launch task to this configuration.",
524
524
"body": {
525
525
"name": "PowerShell: Binary Module Pester Tests",
@@ -529,6 +529,16 @@
529
529
"createTemporaryIntegratedConsole": true,
530
530
"attachDotnetDebugger": true
531
531
}
532
+
},
533
+
{
534
+
"label": "PowerShell: Windows PowerShell",
535
+
"description": "(Windows Only) Launch a temporary Windows PowerShell console for debugging. This is useful for debugging legacy scripts that require Windows PowerShell.",
536
+
"body": {
537
+
"name": "PowerShell: Windows PowerShell",
538
+
"type": "PowerShell",
539
+
"request": "launch",
540
+
"sessionName": "Windows PowerShell (x64)"
541
+
}
532
542
}
533
543
],
534
544
"configurationAttributes": {
@@ -556,6 +566,14 @@
556
566
"description": "Determines whether a temporary PowerShell Extension Terminal is created for each debugging session, useful for debugging PowerShell classes and binary modules. Overrides the user setting 'powershell.debugging.createTemporaryIntegratedConsole'.",
557
567
"default": false
558
568
},
569
+
"sessionName": {
570
+
"type": [
571
+
"string",
572
+
"null"
573
+
],
574
+
"description": "If specified, uses the PowerShell session name to launch the debug configuration. Will always launch in a temporary console if specified.",
575
+
"default": null
576
+
},
559
577
"attachDotnetDebugger": {
560
578
"type": "boolean",
561
579
"description": "If specified, a C# debug session will be started and attached to the new temporary extension terminal. This does nothing unless 'powershell.debugging.createTemporaryIntegratedConsole' is also specified.",
@@ -271,13 +278,24 @@ export class DebugSessionFeature
271
278
"Debug a .NET binary or hybrid module loaded into a PowerShell session. Breakpoints you set in your .NET (C#/F#/VB/etc.) code will be hit upon command execution. You may want to add a compile or watch action as a pre-launch task to this configuration.",
272
279
},
273
280
{
274
-
id: DebugConfig.RunPester,
281
+
id: DebugConfig.BinaryModulePester,
275
282
label: "Run Pester Tests (Binary Module)",
276
283
description:
277
284
"Debug a .NET binary or hybrid module by running Pester tests. Breakpoints you set in your .NET (C#/F#/VB/etc.) code will be hit upon command execution. You may want to add a compile or watch action as a pre-launch task to this configuration.",
278
285
},
279
286
];
280
287
288
+
// Only show the Windows PowerShell option if the platform is Windows
0 commit comments