You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gjsjohnmurray opened this issue
Sep 25, 2018
· 2 comments
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
Code a Debug Adapter capable of raising loadedSource events, e.g. via evaluateRequest's handling of the 'repl' context. Mine was derived from the mock-debug sample.
The first loadedSource event you raise with reason='new' produces no visible entry in the Loaded Scripts panel.
The second loadedSource event (different Source) results in two entries appearing.
Thereafter, each loadedSource event correctly adds its Source to the panel.
The text was updated successfully, but these errors were encountered:
@gjsjohnmurray are you sure you are sending your first loadedSource event after the initalisation has been done and you have responsed properly to the initialize request?
Also not to refresh the tree too much there is 300 ms timeout. You still do not see the tree updating after this time?
@isidorn yes, pretty sure I'm not making those mistakes.
To replicate it in the vscode-mock-debug sample I did the following:
Added this to initializeRequest
response.body.supportsLoadedSourcesRequest = true;
Modified evaluateRequest to support REPL strings such as 'ls 1' and 'ls 2'
if (args.context === 'repl') {
// 'evaluate' supports adding fake entries to Loaded Scripts panel via the 'repl':
Ran the amended vscode-mock-debug in the VSCode debugger as usual. When debugging of the readme.md file was underway, entered the following commands into the input field of the Debug Output panel:
ls 1
Debug Output echoed the command, followed by:
entry added to Loaded Scripts panel
But nothing appeared in the Loaded Scripts panel.
ls 2
Again, this echoed, followed by:
entry added to Loaded Scripts panel
At this point both entries appeared:
isidorn
added
debug
Debug viewlet, configurations, breakpoints, adapter issues
and removed
info-needed
Issue requires more information from poster
labels
Sep 25, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
Version: 1.28.0-insider (user setup)
Commit: 79f79a2
Date: 2018-09-24T05:19:32.981Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: