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
{{ message }}
Repository navigation
Failure message from Variables request to debugger extension is not surfaced #85645
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
caters for an exception thrown by a debugging extension. But they never do that. What they do is return response.success: false and a message in response.message
VS Code version: Code - Insiders 1.41.0-insider (a8158ae, 2019-11-26T21:13:19.311Z)
OS version: Windows_NT x64 10.0.17763
John Murray (@gjsjohnmurray) Good catch!
Would you be willing to provide a PR that fixes this? The PR should check the response.success and if it is false also return the dummy Variable which would hold the error message.
If the variable request returns an error response 'foo bar' it shows up in the UI as:
To emphasize that this is an error I suggest a change to the error format: don't show the leading space and the colon ':', just show the error message.
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
Activity
isidorn commentedon Nov 28, 2019
John Murray (@gjsjohnmurray) Good catch!
Would you be willing to provide a PR that fixes this? The PR should check the response.success and if it is
falsealso return the dummyVariablewhich would hold the error message.Demonstrate microsoft/vscode#85645
microsoft#85645 display Variables fetch failure message
gjsjohnmurray commentedon Nov 29, 2019
My initial diagnosis was incorrect, and the fix (see PR) turned out to be trivial.
Merge pull request #85842 from gjsjohnmurray/fix-85645
weinand commentedon Jan 30, 2020
If the variable request returns an error response 'foo bar' it shows up in the UI as:
To emphasize that this is an error I suggest a change to the error format: don't show the leading space and the colon ':', just show the error message.
isidorn commentedon Jan 30, 2020
Andre Weinand (@weinand) yes, this makes perfect sense. So this does not get lost I have created issue for next milestone #89709