-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of stack trace calls
In `dape--update' request one frame of stack trace, then in info buffer request the rest based on new custom `dape-stack-trace-levels'. This will result in a double render of when adapter :supportsDelayedStackTraceLoading, but when the adapter times out on the stack-trace request this is an overall improvement. This change came about due to an issue where js-debug stackTrace would timeout which it still does if it's an expensive one, "WASM" and stuff in the stack. But state is not ruind only the info buffer is under populated. Why does this not fail on vscode? seams like vscode uses some kind of caching together with js-debug. As the stackTrace call will not take the same amount of time whenever dap visits the part of code again, so I am guessing vscode supplies some cache part or some other hidden "launch" request parameter.
- Loading branch information
Showing
1 changed file
with
95 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters