Skip to content

Commit 19e7558

Browse files
committed
Addresses issue #55 for 0.4.0 release to select debug host bitness.
This change adds a new debugger configuration to the package.json file. The user can simply change the debug type from 'PowerShell' to 'PowerShell x86' in their launch.json file to do 32-bit debugging. Also, when they open a folder that doesn't have a .vscode\launch.json file, when they go to create that file, they can pick between 'PowerShell' and 'PowerShell x86'. Of course on 32-bit OSs the 'PowerShell x86' selection is redundant with 'PowerShell'. Oh well.
1 parent 9374612 commit 19e7558

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

package.json

+30
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,36 @@
134134
"program": "${file}"
135135
}
136136
]
137+
},
138+
{
139+
"type": "PowerShell x86",
140+
"enableBreakpointsFor": {
141+
"languageIds": [
142+
"powershell"
143+
]
144+
},
145+
"program": "bin/Microsoft.PowerShell.EditorServices.Host.DebugAdapter.x86.cmd",
146+
"configurationAttributes": {
147+
"launch": {
148+
"required": [
149+
"program"
150+
],
151+
"properties": {
152+
"program": {
153+
"type": "string",
154+
"description": "Workspace relative path to the PowerShell script."
155+
}
156+
}
157+
}
158+
},
159+
"initialConfigurations": [
160+
{
161+
"name": "PowerShell x86",
162+
"type": "PowerShell x86",
163+
"request": "launch",
164+
"program": "${file}"
165+
}
166+
]
137167
}
138168
],
139169
"configuration": {

0 commit comments

Comments
 (0)