title: AWS Toolkit + VSCode local testing
body: <p>I'm trying to figure out how to use AWS toolkit for vscode. I go to the AWS extension and click Create New SAM Application, point to project directory and it creates a hello world function. Above it, it says <code>Add Debug Configuration</code>. I click that, choose nodejs 12.x and save the launch.json, but I don't get the run option. It still says <code>Add Debug Configuration</code> for some reason. How can I run my lambda functions locally in the console?<br />
  The launch.json file generates, but I can never run the code.</p>
  <p><a href="https://i.stack.imgur.com/ae40x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ae40x.png" alt="enter image description here" /></a></p>
  <p>launch.json</p>
  <pre><code>{
      &quot;configurations&quot;: [
          {
              &quot;type&quot;: &quot;aws-sam&quot;,
              &quot;request&quot;: &quot;direct-invoke&quot;,
              &quot;name&quot;: &quot;new test:app.lambdaHandler (nodejs12.x)&quot;,
              &quot;invokeTarget&quot;: {
                  &quot;target&quot;: &quot;code&quot;,
                  &quot;projectRoot&quot;: &quot;new test/hello-world&quot;,
                  &quot;lambdaHandler&quot;: &quot;app.lambdaHandler&quot;
              },
              &quot;lambda&quot;: {
                  &quot;runtime&quot;: &quot;nodejs12.x&quot;,
                  &quot;payload&quot;: {},
                  &quot;environmentVariables&quot;: {}
              }
          }
      ]
  }
  </code></pre>
  <p>I also tried navigating to the hello-world directory in terminal and executing <code>node app.js</code>, but it doesn't return anything</p>
  <p><a href="https://i.stack.imgur.com/sYd75.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sYd75.png" alt="enter image description here" /></a></p>
  <p>What am I doing wrong? I appreciate the help!</p>