Skip to content

Commit 1d4cd4c

Browse files
authored
Merge pull request PowerShell#490 from PowerShell/rkeithhill/add-pester-tests-dbg-snippet
Update dbg config snippets to be consistent w/node
2 parents 0072d5a + 7847f13 commit 1d4cd4c

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

examples/.vscode/launch.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
{
55
"type": "PowerShell",
66
"request": "launch",
7-
"name": "PowerShell Launch (DebugTest.ps1)",
8-
"script": "${workspaceRoot}/DebugTest.ps1",
9-
"args": ["-Count 42 -DelayMilliseconds 1500"],
10-
"cwd": "${workspaceRoot}"
7+
"name": "PowerShell Launch (current file)",
8+
"script": "${file}",
9+
"args": [],
10+
"cwd": "${file}"
1111
},
1212
{
1313
"type": "PowerShell",
1414
"request": "launch",
15-
"name": "PowerShell Interactive Session",
15+
"name": "PowerShell Launch (DebugTest.ps1)",
16+
"script": "${workspaceRoot}/DebugTest.ps1",
17+
"args": ["-Count 55 -DelayMilliseconds 250"],
1618
"cwd": "${workspaceRoot}"
1719
},
1820
{
1921
"type": "PowerShell",
2022
"request": "launch",
21-
"name": "PowerShell Launch (current file)",
22-
"script": "${file}",
23-
"args": [],
24-
"cwd": "${file}"
23+
"name": "PowerShell Interactive Session",
24+
"cwd": "${workspaceRoot}"
2525
},
2626
{
2727
"type": "PowerShell",
@@ -31,4 +31,4 @@
3131
"runspaceId": 1
3232
}
3333
]
34-
}
34+
}

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@
174174
"startSessionCommand": "PowerShell.StartDebugSession",
175175
"configurationSnippets": [
176176
{
177-
"label": "PowerShell: Launch Current Script Configuration",
178-
"description": "A new configuration for launching the current opened PowerShell script",
177+
"label": "PowerShell: Launch (current file)",
178+
"description": "Launch current file (in active editor window) under debugger",
179179
"body": {
180180
"type": "PowerShell",
181181
"request": "launch",
@@ -186,8 +186,8 @@
186186
}
187187
},
188188
{
189-
"label": "PowerShell: Launch Script Configuration",
190-
"description": "A new configuration for launching a PowerShell script",
189+
"label": "PowerShell: Launch Script",
190+
"description": "Launch specified script under debugger",
191191
"body": {
192192
"type": "PowerShell",
193193
"request": "launch",
@@ -198,8 +198,8 @@
198198
}
199199
},
200200
{
201-
"label": "PowerShell: Attach to PowerShell Host Process Configuration",
202-
"description": "A new configuration for debugging a runspace in another host process.",
201+
"label": "PowerShell: Attach to PowerShell Host Process",
202+
"description": "Open host process picker to select process to attach debugger to",
203203
"body": {
204204
"type": "PowerShell",
205205
"request": "attach",
@@ -209,8 +209,8 @@
209209
}
210210
},
211211
{
212-
"label": "PowerShell: Launch Interactive Session Configuration",
213-
"description": "A new configuration for debugging an interactive session.",
212+
"label": "PowerShell: Interactive Session",
213+
"description": "Start interactive session (Debug Console) under debugger",
214214
"body": {
215215
"type": "PowerShell",
216216
"request": "launch",

0 commit comments

Comments
 (0)