From 4a0a96bba1e12ed966a52125ad6f5fbe49fca9a9 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 24 Apr 2017 16:50:11 -0700 Subject: [PATCH] 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. --- .vscode/launch.json | 17 +++++++++++++++++ PowerShellEditorServices.Common.props | 1 + 2 files changed, 18 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..4f2d4abab --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": ".NET Full: Attach to Process", + "type": "clr", + "request": "attach", + "processId": "${command:pickProcess}" + }, + { + "name": ".NET Core: Attach to Process", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}" + } + ] +} \ No newline at end of file diff --git a/PowerShellEditorServices.Common.props b/PowerShellEditorServices.Common.props index 0e61a556a..72dd44fbd 100644 --- a/PowerShellEditorServices.Common.props +++ b/PowerShellEditorServices.Common.props @@ -9,5 +9,6 @@ true git https://github.com/PowerShell/PowerShellEditorServices + portable \ No newline at end of file