Skip to content

Commit 4a0a96b

Browse files
committed
Enable debugging of PowerShell Editor Services using VS Code
This change turns on the portable PDB format for the primary assemblies in the project so that they can be debugged in VS Code. Version 1.9 of the C# extension added a new debugger type, `clr`, which allows you to debug 64-bit Full CLR apps when portable PDBs are in use.
1 parent fa11747 commit 4a0a96b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.vscode/launch.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": ".NET Full: Attach to Process",
6+
"type": "clr",
7+
"request": "attach",
8+
"processId": "${command:pickProcess}"
9+
},
10+
{
11+
"name": ".NET Core: Attach to Process",
12+
"type": "coreclr",
13+
"request": "attach",
14+
"processId": "${command:pickProcess}"
15+
}
16+
]
17+
}

PowerShellEditorServices.Common.props

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1010
<RepositoryType>git</RepositoryType>
1111
<RepositoryUrl>https://github.com/PowerShell/PowerShellEditorServices</RepositoryUrl>
12+
<DebugType>portable</DebugType>
1213
</PropertyGroup>
1314
</Project>

0 commit comments

Comments
 (0)