-
Notifications
You must be signed in to change notification settings - Fork 521
Add examples for Start-DebugAttachSession #5246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@Copilot
Copilot
AI
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds example scripts demonstrating the usage of the new Start-DebugAttachSession
function from PowerShell Editor Services. The examples show how to attach a debugger to a child PowerShell process using custom named pipes.
- Provides a target script that can be debugged when launched as a child process
- Demonstrates the complete workflow for attaching to and debugging external PowerShell processes
- Includes handling for both Windows PowerShell 5.1 and PowerShell Core compatibility
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
examples/ChildDebugSessionTarget.ps1 | Target script that runs in a child process and waits for debugger attachment |
examples/ChildDebugSessionAttach.ps1 | Main example script showing how to launch and attach to a child PowerShell process |
Adds examples to demonstrate how the new `Start-DebugAttachSession` function added in PowerShell Editor Services can be used.
056ff0d
to
49c9289
Compare
PowerShell/PowerShellEditorServices#2249 has been merged so this is ready for review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Uh oh!
There was an error while loading. Please reload this page.
PR Summary
Adds examples to demonstrate how the new
Start-DebugAttachSession
function added in PowerShell Editor Services can be used.The new function is attached by the PR PowerShell/PowerShellEditorServices#2249.
PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an
x
between the square brackets.Please mark anything not applicable to this PR
NA
.WIP:
to the beginning of the title and remove the prefix when the PR is ready