title: Trouble getting Flutter to run in debug mode in VS Code
body: <p>I am able to run my Flutter project in an emulator in Android Studio. I'm trying to run that same code in debug mode (f5) in VS Code, but I get an error saying:</p>
  <blockquote>
  <p>Set the 'program' value in your launch config (eg 'lib/main.dart') then launch again.</p>
  </blockquote>
  <p>So I updated my launch config to the following:</p>
  <pre><code>{
      &quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [
          {
              &quot;name&quot;: &quot;Dart &amp; Flutter&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;type&quot;: &quot;dart&quot;,
              &quot;program&quot;: &quot;lib/main.dart&quot;
          }
      ]
  }
  </code></pre>
  <p>After that update, when I try f5 I get the following error:</p>
  <blockquote>
  <p>Your launch config references a program that does not exist. If you have problems launching, check the &quot;program&quot; field in your &quot;.vscode/launch.json&quot; file.</p>
  </blockquote>
  <p>I DO have a main.dart file??</p>
  <p>Any help would be greatly appreciated.</p>