title: Xcode12 po command in lldb in console cannot find variables in scope
body: <p>Ever since I updated to Xcode 12, I have not been able to print out variables in the console while debugging with lldb.</p>
  <p>Using <code>print()</code> statements directly in Swift code outputs to the console as expected.</p>
  <p>A command in the console such as <code>po &quot;hi&quot;</code> outputs &quot;hi&quot; to the console as expected.</p>
  <p>Trying to run <code>po &lt;variable_name&gt;</code>, instead, always outputs this line:</p>
  <pre><code>error: &lt;EXPR&gt;:3:1: error: cannot find 'variable_name' in scope
  </code></pre>
  <p>instead of the expected variable's value.</p>
  <h2>Steps I took</h2>
  <ol>
  <li><p>Add these lines to Swift code</p>
  <pre><code>let example = &quot;hi&quot;
  print(example)
  </code></pre>
  </li>
  <li><p>Put a breakpoint on the second line, the one with the <code>print()</code> statement</p>
  </li>
  <li><p>Run the code and wait for the breakpoint to be hit</p>
  </li>
  <li><p>Try to run <code>po example</code> in the debug console</p>
  </li>
  </ol>
  <h2>Expected result</h2>
  <p>It should print <code>&quot;hi&quot;</code> in the console</p>
  <h2>Actual result</h2>
  <p>It prints this error line</p>
  <pre><code>error: &lt;EXPR&gt;:3:1: error: cannot find 'example' in scope
  </code></pre>
  <p>It's the same when running on the simulator or a device. I've tried activating the console, and restarting Xcode.</p>
  <p>I've tried creating a new project in Xcode12 and that works fine, my other older projects created with previous versions of Xcode work fine in Xcode 12.</p>
  <p>I've tried confronting the Build settings both with the other projects and with a newly created project and it seems nothing's wrong: optimization is set to <code>None</code> as it should for debug build configurations and the run scheme is set to launch a debug build configuration.</p>
  <p>Where else could the problem be?</p>