title: VS Code / Dart - Variable inspector shows error string
body: <p>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.</p>
  <pre><code>&lt;function errorString(error) {&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/xfiZk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xfiZk.png" alt="vs code variable inspector" /></a></p>
  <p>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.</p>
  <ul>
  <li>What do these error strings mean?</li>
  <li>How can the root cause be determined (think stack traces in VS Pro)?</li>
  <li>Why do they only show in break points but don't seem to affect runtime output?</li>
  <li>How can the actual resolved state of the variable be inspected?</li>
  </ul>