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
/** Represents the various built-in debug configurations that will be advertised to the user if they choose "Add Config" from the launch debug config window */
script: "Enter command to import your binary module, for example: \"Import-Module -Force ${workspaceFolder}/path/to/module.psd1|dll\"",
102
+
},
103
+
[DebugConfig.BinaryModule]: {
104
+
name: "PowerShell: Binary Module Interactive",
105
+
type: "PowerShell",
106
+
request: "launch",
107
+
script: "Enter command to import your binary module, for example: \"Import-Module -Force ${workspaceFolder}/path/to/module.psd1|dll\"",
108
+
createTemporaryIntegratedConsole: true,
109
+
attachDotnetDebugger: true
110
+
},
111
+
[DebugConfig.BinaryModulePester]: {
112
+
name: "PowerShell: Binary Module Pester Tests",
113
+
type: "PowerShell",
114
+
request: "launch",
115
+
script: "Invoke-Pester",
116
+
createTemporaryIntegratedConsole: true,
117
+
attachDotnetDebugger: true
84
118
}
85
119
};
86
120
@@ -147,6 +181,26 @@ export class DebugSessionFeature extends LanguageClientConsumer
147
181
label: "Attach",
148
182
description: "Attach the debugger to a running PowerShell Host Process",
149
183
},
184
+
{
185
+
id: DebugConfig.RunPester,
186
+
label: "Run Pester Tests",
187
+
description: "Debug Pester Tests detected in your current directory (runs Invoke-Pester)",
188
+
},
189
+
{
190
+
id: DebugConfig.ModuleInteractiveSession,
191
+
label: "Interactive Session (Module)",
192
+
description: "Debug commands executed from the PowerShell Extension Terminal after auto-loading your module",
193
+
},
194
+
{
195
+
id: DebugConfig.BinaryModule,
196
+
label: "Interactive Session (Binary Module)",
197
+
description: "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.",
198
+
},
199
+
{
200
+
id: DebugConfig.RunPester,
201
+
label: "Run Pester Tests (Binary Module)",
202
+
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.",
0 commit comments