debug: request goroutines from dlv only once per stop (in handleReenterDebug) #940
Labels
debug/legacy
legacy debug adapter related issues - new issues won't be fixed
Debug
Issues related to the debugging functionality of the extension.
FrozenDueToAge
Milestone
As we know from #129, threads/goroutine requests can be quite expensive. We should avoid pulling duplicate information for these from the backend.
Vscode issues threads requests in the following cases without checking for dups like it does with thread events:
When the program stops on entry, we will get dups on entry. In this case the return list will be empty, so this won't be very expensive:
When a program doesn't stop on entry, the threads request that is issued along with
configurationDone
can arrive when a breakpoint is hit, which comes with its own threads request. And at that point there can be many goroutines to return:Also, if we fix handling of simultaneous breakpoints (#130), we will need to issue a stopped event per breakpoint, which will also trigger duplicate threads requests.
The text was updated successfully, but these errors were encountered: