Title: Lazily Evaluate Variables/threads/stacktrace for better stepping performance · Issue #2189 · PowerShell/PowerShellEditorServices · GitHub
Open Graph Title: Lazily Evaluate Variables/threads/stacktrace for better stepping performance · Issue #2189 · PowerShell/PowerShellEditorServices
X Title: Lazily Evaluate Variables/threads/stacktrace for better stepping performance · Issue #2189 · PowerShell/PowerShellEditorServices
Description: PowerShellEditorServices/src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs Lines 985 to 986 in bbf627b await FetchStackFramesAndVariablesAsync(noScriptName ? localScriptPath : null).ConfigureAwait(false); This line "bloc...
Open Graph Description: PowerShellEditorServices/src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs Lines 985 to 986 in bbf627b await FetchStackFramesAndVariablesAsync(noScriptName ? localScriptPath : null...
X Description: PowerShellEditorServices/src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs Lines 985 to 986 in bbf627b await FetchStackFramesAndVariablesAsync(noScriptName ? localScriptPath : null...
Opengraph URL: https://github.com/PowerShell/PowerShellEditorServices/issues/2189
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Lazily Evaluate Variables/threads/stacktrace for better stepping performance","articleBody":"https://github.com/PowerShell/PowerShellEditorServices/blob/bbf627b597011a8c43379abe025d60df15449087/src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs#L985-L986\r\n\r\nThis line \"blocks\" stepping for about half a second, and I don't currently see any reason why it has to. We should return to the user as fast as possible that we have reached our breakpoint, and do this heavy processing at the point the DAP makes the `stackTrace`, `scopes`, and `variables` requests, because those are non-blocking to the UI\r\n\r\nEDIT: Based on DAP testing, currently after a stop, vscode requests `threads` and `stacktrace` before the UI updates with the new breakpoint, but I think if we implement `supportsDelayedStackTraceLoading` capabilities, we can quickly return a first stack trace, and since threads is basically a dummy since we don't currently support multi-thread stacktraces, we can probably make some responsiveness improvements here.\r\n","author":{"url":"https://github.com/JustinGrote","@type":"Person","name":"JustinGrote"},"datePublished":"2024-10-11T04:53:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/2189/PowerShellEditorServices/issues/2189"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:997de58e-7a77-9f1a-c458-95e94752cbf1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2AE:162C5F:3100B08:454515E:6A5916BB |
| html-safe-nonce | a253c4cb85baa9d7ff4e4a897f9b7edd56a87761585e2003e8c5ebe7fdef02be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkFFOjE2MkM1RjozMTAwQjA4OjQ1NDUxNUU6NkE1OTE2QkIiLCJ2aXNpdG9yX2lkIjoiMzQ4MzM5NDI2MzI2MTcxNDEwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | db56ca5ff09aa5896d94180f259a2e7983b23017cef87a68a2048ac5dbd08000 |
| hovercard-subject-tag | issue:2580432716 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShellEditorServices/2189/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b9afa9b3ca4f64fc78a0b4e7f775fa1ff61c21ef1dc1c10e0b4b2a5697bb200b/PowerShell/PowerShellEditorServices/issues/2189 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b9afa9b3ca4f64fc78a0b4e7f775fa1ff61c21ef1dc1c10e0b4b2a5697bb200b/PowerShell/PowerShellEditorServices/issues/2189 |
| og:image:alt | PowerShellEditorServices/src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs Lines 985 to 986 in bbf627b await FetchStackFramesAndVariablesAsync(noScriptName ? localScriptPath : null... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JustinGrote |
| hostname | github.com |
| expected-hostname | github.com |
| None | de7b53b927e5bfbf02672a5b2960bf82d1608d91c6d7888039c826ebf8d4ca76 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShellEditorServices git https://github.com/PowerShell/PowerShellEditorServices.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 36031537 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShellEditorServices |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36031537 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShellEditorServices |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 020f8e5d3a42ae1a22d3f297198ccfca124edd1d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width