Debugger can have ability to set value of a variable. Debug Adapter Protocol has setVariable command for this.
But if evaluation of new value fails (for example, if user entered non-valid expression) theia ignores result and error message from Debug Adapter and only logs error to console. As result, user doesn't see any appropriate reaction on his action
Steps to Reproduce:
Launch JS debugging
stop at some breakpoint
in Variables panel right-click and choose Set value
enter an invalid JS expression, for example some syntax error
Nothing happens in UI. Only in console.log we see message "ERROR setValue failed..."
Bug Description:
Debugger can have ability to set value of a variable. Debug Adapter Protocol has
setVariable
command for this. But if evaluation of new value fails (for example, if user entered non-valid expression) theia ignores result and error message from Debug Adapter and only logs error to console. As result, user doesn't see any appropriate reaction on his actionSteps to Reproduce:
Set value
Additional Information
Expected behavior: This is how it works in VSCode![image](https://github.com/eclipse-theia/theia/assets/2657561/8228af4b-6a9c-447c-a343-d47128b88c07)
Code: https://github.com/eclipse-theia/theia/blob/master/packages/debug/src/browser/console/debug-console-items.tsx#L206