|
5 | 5 | "version": "0.2.0",
|
6 | 6 | "configurations": [
|
7 | 7 | {
|
8 |
| - "name": "PowerShell cmdlets: pwsh", |
| 8 | + "name": "Debug with nugets in new PowerShell session", |
9 | 9 | "type": "coreclr",
|
10 | 10 | "request": "launch",
|
11 | 11 | "preLaunchTask": "Build with nugets",
|
| 12 | + "args": [], |
| 13 | + "cwd": "${workspaceFolder}", |
| 14 | + "stopAtEntry": false, |
| 15 | + "console": "externalTerminal", |
12 | 16 | "program": "pwsh",
|
13 |
| - "args": [ |
14 |
| - "-NoExit", |
15 |
| - "-NoProfile", |
16 |
| - "-Command", |
17 |
| - "Import-Module ${userHome}/.local/share/powershell/Modules/PnP.PowerShell.psd1", |
18 |
| - ], |
| 17 | + "osx": { |
| 18 | + "program": "pwsh", |
| 19 | + }, |
| 20 | + "windows": { |
| 21 | + "program": "pwsh.exe" |
| 22 | + } |
| 23 | + }, |
| 24 | + { |
| 25 | + "preLaunchTask": "Build with nugets", |
| 26 | + "name": "Debug with nugets in existing PowerShell session", |
| 27 | + "type": "coreclr", |
| 28 | + "request": "attach", |
| 29 | + "processId": "${command:pickProcess}", |
| 30 | + }, |
| 31 | + { |
| 32 | + "name": "Debug with local copy of PnP Framework in new PowerShell session", |
| 33 | + "type": "coreclr", |
| 34 | + "request": "launch", |
| 35 | + "preLaunchTask": "Build with local copy of PnP Framework", |
| 36 | + "args": [], |
19 | 37 | "cwd": "${workspaceFolder}",
|
20 | 38 | "stopAtEntry": false,
|
21 |
| - "console": "externalTerminal" |
| 39 | + "console": "externalTerminal", |
| 40 | + "program": "pwsh", |
| 41 | + "osx": { |
| 42 | + "program": "pwsh", |
| 43 | + }, |
| 44 | + "windows": { |
| 45 | + "program": "pwsh.exe" |
| 46 | + } |
22 | 47 | },
|
23 | 48 | {
|
24 |
| - "name": ".NET Core Launch with Nuget Build(console)", |
| 49 | + "preLaunchTask": "Build with local copy of PnP Framework", |
| 50 | + "name": "Debug with local copy of PnP Framework in existing PowerShell session", |
| 51 | + "type": "coreclr", |
| 52 | + "request": "attach", |
| 53 | + "processId": "${command:pickProcess}", |
| 54 | + }, |
| 55 | + { |
| 56 | + "name": "Debug with local copy of PnP Core in new PowerShell session", |
25 | 57 | "type": "coreclr",
|
26 | 58 | "request": "launch",
|
27 |
| - "preLaunchTask": "Build with nugets", |
| 59 | + "preLaunchTask": "Build with local copy of PnP Core SDK", |
28 | 60 | "args": [],
|
29 | 61 | "cwd": "${workspaceFolder}",
|
30 | 62 | "stopAtEntry": false,
|
|
38 | 70 | }
|
39 | 71 | },
|
40 | 72 | {
|
41 |
| - "preLaunchTask": "Build with nugets", |
42 |
| - "name": ".NET Core Attach", |
| 73 | + "preLaunchTask": "Build with local copy of PnP Core SDK", |
| 74 | + "name": "Debug with local copy of PnP Core in existing PowerShell session", |
| 75 | + "type": "coreclr", |
| 76 | + "request": "attach", |
| 77 | + "processId": "${command:pickProcess}", |
| 78 | + }, |
| 79 | + { |
| 80 | + "name": "Debug with local copy of PnP Framework and Core in new PowerShell session", |
| 81 | + "type": "coreclr", |
| 82 | + "request": "launch", |
| 83 | + "preLaunchTask": "Build with local copy of PnP Framework/PnP Core SDK", |
| 84 | + "args": [], |
| 85 | + "cwd": "${workspaceFolder}", |
| 86 | + "stopAtEntry": false, |
| 87 | + "console": "externalTerminal", |
| 88 | + "program": "pwsh", |
| 89 | + "osx": { |
| 90 | + "program": "pwsh", |
| 91 | + }, |
| 92 | + "windows": { |
| 93 | + "program": "pwsh.exe" |
| 94 | + } |
| 95 | + }, |
| 96 | + { |
| 97 | + "preLaunchTask": "Build with local copy of PnP Framework/PnP Core SDK", |
| 98 | + "name": "Debug with local copy of PnP Framework and Core in existing PowerShell session", |
| 99 | + "type": "coreclr", |
| 100 | + "request": "attach", |
| 101 | + "processId": "${command:pickProcess}", |
| 102 | + }, |
| 103 | + { |
| 104 | + "name": "Attach to existing PowerShell session", |
43 | 105 | "type": "coreclr",
|
44 | 106 | "request": "attach",
|
45 | 107 | "processId": "${command:pickProcess}",
|
|
0 commit comments