Add Breakpoint Label frame to optimize debug stepping performance#2190
Add Breakpoint Label frame to optimize debug stepping performance#2190JustinGrote merged 3 commits intomainfrom
Conversation
|
@SeeminglyScience @andyleejordan I made this a fairly minimal PR to be easy to review. Additional things I plan to do next as future incrementals
|
I'm super excited for all of this. |
andyleejordan
left a comment
There was a problem hiding this comment.
@SeeminglyScience and I are going to take a closer look at this just to be sure nothing got missed.
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs
Outdated
Show resolved
Hide resolved
3fbc7b7 to
cc2e2a1
Compare
80b2351 to
9ce8911
Compare
cc2e2a1 to
f052fa5
Compare
|
This has been rebased to the latest prerelease and is good for re-review. |
SeeminglyScience
left a comment
There was a problem hiding this comment.
Thanks Justin! Couple of questions and minor requests
src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs
Outdated
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs
Outdated
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs
Outdated
Show resolved
Hide resolved
andyleejordan
left a comment
There was a problem hiding this comment.
Loving this, we finally got to review through it. Just a couple changes requested and then we want to get into pre-release.
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/ScopesHandler.cs
Outdated
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs
Outdated
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs
Outdated
Show resolved
Hide resolved
|
@andyleejordan @SeeminglyScience your opinions have officially been deemed irrelevant by our AI overlords, please approve as is /s |
939e2c4 to
84b55f8
Compare
Co-authored-by: Patrick Meinecke <[email protected]>
47a2634 to
9414af6
Compare
9414af6 to
414599f
Compare
|
All feedback should be addressed. I also removed some of the TraceOutput log stuff I was experimenting with, I'm going to submit a separate test-specific PR to revamp the DAP E2E tests. |
andyleejordan
left a comment
There was a problem hiding this comment.
YOLO, I mean I love it and it's been thoroughly reviewed. Thanks Justin! Excited to get this out.
|
@andyleejordan this wording sounded so unnecessarily passive aggressive, LOL Thanks! Excited to speed this up, it's annoyed me for YEARS. |


PR Summary
Implements DAP
DelayedStackTraceLoadingand returns an artificial breakpoint label frame based on the invocation info ASAP once the debugger stops. The rest of the stack trace is then returned on a future request that doesn't block the client UI.Capture.mp4
PR Context
Debug stepping takes 300ms+ due to waiting for stack trace collection via the slow
Get-PSCallStack"hack". Further improvements will come around this later.