mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Move debugging docs
This commit is contained in:
1 parent
b8435da8db
commit
666d036fd8
2 files changed
+44
-32
No files matched your search
@@ -66,38 +66,6 @@ contributing guidelines and learn about submodules. Not every
|
||||
submodule is required on every system; see the individual build
|
||||
instructions for the necessary subsets.
|
||||
|
||||
## Debugging
|
||||
|
||||
To enable debugging on Linux, follow the installation instructions for
|
||||
[Experimental .NET Core Debugging in VS Code][VS Code]. You will also
|
||||
want to review their [detailed instructions][vscclrdebugger].
|
||||
|
||||
VS Code will place a `.vscode` directory in the PowerShell folder.
|
||||
This contains the `launch.json` file, which you will customize using
|
||||
the instructions below. You will also be prompted to create a
|
||||
`tasks.json` file.
|
||||
|
||||
Currently, debugging supports attaching to a currently running
|
||||
powershell process. Assuming you've created a `launch.json` file
|
||||
correctly, within the "configuration" section, use the below settings:
|
||||
|
||||
```json
|
||||
"configurations": [
|
||||
{
|
||||
"name": "powershell",
|
||||
"type": "coreclr",
|
||||
"request": "attach",
|
||||
"processName": "powershell"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
VS Code will now attach to a running `powershell` process. Start
|
||||
powershell, then (in VS Code) press `F5` to begin the debugger.
|
||||
|
||||
[VS Code]: https://blogs.msdn.microsoft.com/visualstudioalm/2016/03/10/experimental-net-core-debugging-in-vs-code/
|
||||
[vscclrdebugger]: http://aka.ms/vscclrdebugger
|
||||
|
||||
### FullCLR PowerShell
|
||||
|
||||
## Running from CI server
|
||||
|
||||
Reference in new issue
Block a user