watching return-values in Visual Studio Code

Visual Studio Code recently supported this - the returned value can be found under "Local": enter image description here


See https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_44.md#reference-returnvalue-in-watches-and-debug-console JAVASCRIPT

With v1.44:

Reference $returnValue in Watches and Debug Console

When it's availble in the callstack, you can now reference the function's $returnValue in the debug console and watch expressions.

So it can be used in the Watch view and the debug console.

return value