title: Unhandled error in debug adapter: SyntaxError: Unexpected token L in JSON at position 0
body: <p>Error:</p>
  <pre><code>******** Unhandled error in debug adapter: SyntaxError: Unexpected token L in JSON at position 0    
      at JSON.parse (&lt;anonymous&gt;)
      at Pipe.channel.onread (internal/child_process.js:471:28)
  </code></pre>
  <p>Hello Guys,</p>
  <p>I had found a lot of other issues/questions like this here and any where else, but no of them includes &quot;Unhandled error in debug adapter&quot;. I had tried a lot of workflows, but nothing worked.</p>
  <p><strong>Short Introduction:</strong></p>
  <p>OS: Windows 64x</p>
  <p>IDE: VS Code (version: 1.25.1 / launch.json see below)</p>
  <p>vscode-Plugin: React Native Tools (version: 0.6.12)</p>
  <p>Language/Framework: React-Native</p>
  <p>(React-version: 16.4.1 /RN-version 0.55.4 / cli-version: 2.0.1)</p>
  <p>Project: Android App (iOS followed later)</p>
  <p>Output of React-Native: Run android
  <em>Installing APK 'app-debug.apk'</em> was successful.</p>
  <p>Output of React-Native: <em>Starting custom debugger by executing: echo A debugger is not needed:</em> &quot;[project-location]&quot; &quot;[project-location].vscode&quot;</p>
  <p>Starting App with react-native run-android via terminal still working.</p>
  <p>Try following troubleshooting steps:</p>
  <ul>
  <li>comment out all JSON.parse() calls</li>
  <li>check all fetch based functions</li>
  <li>check older repository revisions</li>
  <li>repair vscode</li>
  <li>reinstall vscode</li>
  <li>update RN to 0.56.0</li>
  <li>change mobile device</li>
  </ul>
  <p>Existing project is to large to show it here and dosn't exist in a public repo.</p>
  <p><strong>launch.json - I'm using &quot;Debug Android&quot;</strong></p>
  <pre><code>{    
      &quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [        
          {
              &quot;name&quot;: &quot;Debug Android&quot;,    
              &quot;program&quot;: &quot;${workspaceRoot}/.vscode/launchReactNative.js&quot;,    
              &quot;type&quot;: &quot;reactnative&quot;,
              &quot;request&quot;: &quot;launch&quot;,    
              &quot;platform&quot;: &quot;android&quot;,    
              &quot;sourceMaps&quot;: true,    
              &quot;outDir&quot;: &quot;${workspaceRoot}/.vscode/.react&quot;,
          },
          {
              &quot;name&quot;: &quot;Debug iOS&quot;,
              &quot;program&quot;: &quot;${workspaceRoot}/.vscode/launchReactNative.js&quot;,
              &quot;type&quot;: &quot;reactnative&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;platform&quot;: &quot;ios&quot;,
              &quot;sourceMaps&quot;: true,
              &quot;outDir&quot;: &quot;${workspaceRoot}/.vscode/.react&quot;
          },
          {
              &quot;name&quot;: &quot;Attach to packager&quot;,
              &quot;program&quot;: &quot;${workspaceRoot}/.vscode/launchReactNative.js&quot;,
              &quot;type&quot;: &quot;reactnative&quot;,
              &quot;request&quot;: &quot;attach&quot;,
              &quot;sourceMaps&quot;: true,
              &quot;outDir&quot;: &quot;${workspaceRoot}/.vscode/.react&quot;
          },
          {
              &quot;name&quot;: &quot;Debug in Exponent&quot;,
              &quot;program&quot;: &quot;${workspaceRoot}/.vscode/launchReactNative.js&quot;,
              &quot;type&quot;: &quot;reactnative&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;platform&quot;: &quot;exponent&quot;,
              &quot;sourceMaps&quot;: true,
              &quot;outDir&quot;: &quot;${workspaceRoot}/.vscode/.react&quot;
          }
      ]
  }
  </code></pre>
  <p>I don't know where the problem is located:</p>
  <ul>
  <li>project</li>
  <li>vscode</li>
  <li>node</li>
  <li>...</li>
  </ul>
  <p>Logcat prints only [INFO] no Warnings and no Errors.</p>
  <p>Want to debug project with debug terminal of vscode, because debugging with chrome doesn't work with breakpoints.</p>
  <p>I'm very new at working with vscode and RN, please explain possible solutions a little bit more detailed.</p>
  <p>Thanks in advance.</p>
  <p>Chris</p>