rism
rism

Reputation: 12142

VS Code / Dart - Variable inspector shows error string

When trying to inspect variables for a Flutter project in VSCode, it is often the case the inspector shows nothing of use. For instance, below we have a variable x of some type. There are no runtime errors but when setting a breakpoint, the inspector simply shows the following for the value of x.

<function errorString(error) {>

vs code variable inspector

The meaning of this is elusory since there is no related output in the debugging console. The breakpoints are being set within calls to Futures returning functions but it's hit and miss as to why most, but not all, variables cannot be inspected.

Upvotes: 0

Views: 585

Answers (1)

Danny Tuppeny
Danny Tuppeny

Reputation: 42433

This was a bug in the Dart VS Code extension that has now been resolved:

https://github.com/Dart-Code/Dart-Code/issues/3840

Now the proper error message should be shown instead of the implementation of a function.

Upvotes: 2

Related Questions