<p dir="auto">Issue Id: <b>8856b7b3-2338-92df-ea7e-64a3e8146fa3</b><br><br><em>Versions</em> <br>- 0.10.5<br>-  <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/a80232bbcfe8a5cdad1ebc98638673d9dcb02458/hovercard" href="https://github.com/microsoft/vscode/commit/a80232bbcfe8a5cdad1ebc98638673d9dcb02458"><tt>a80232b</tt></a><br><em>Stack</em> <br>SyntaxError: Unexpected token :<br>    at Object.parse (native)<br>[/vs/workbench/parts/debug/node/v8Protocol.ts#L129:21 (V8Protocol.dispatch)](<a href="https://github.com/microsoft/vscode/blob/dfc08dc9edf6607483b193bf934d3badc3fa2e11/src/vs/workbench/parts/debug/node/v8Protocol.ts#L129:21">https://github.com/microsoft/vscode/blob/dfc08dc9edf6607483b193bf934d3badc3fa2e11/src/vs/workbench/parts/debug/node/v8Protocol.ts#L129:21</a> %28V8Protocol.dispatch%29)<br>[/vs/workbench/parts/debug/node/v8Protocol.ts#L108:11 (V8Protocol.handleData)](<a href="https://github.com/microsoft/vscode/blob/dfc08dc9edf6607483b193bf934d3badc3fa2e11/src/vs/workbench/parts/debug/node/v8Protocol.ts#L108:11">https://github.com/microsoft/vscode/blob/dfc08dc9edf6607483b193bf934d3badc3fa2e11/src/vs/workbench/parts/debug/node/v8Protocol.ts#L108:11</a> %28V8Protocol.handleData%29)<br>[/vs/workbench/parts/debug/node/v8Protocol.ts#L63:8 (V8Protocol.connect)](<a href="https://github.com/microsoft/vscode/blob/dfc08dc9edf6607483b193bf934d3badc3fa2e11/src/vs/workbench/parts/debug/node/v8Protocol.ts#L63:8">https://github.com/microsoft/vscode/blob/dfc08dc9edf6607483b193bf934d3badc3fa2e11/src/vs/workbench/parts/debug/node/v8Protocol.ts#L63:8</a> %28V8Protocol.connect%29)<br>    at emitOne (events.js:77:13)<br>    at Socket.emit (events.js:169:7)<br>    at readableAddChunk (_stream_readable.js:146:16)<br>    at Socket.Readable.push (_stream_readable.js:110:10)<br>    at Pipe.onread (net.js:523:20)<br></p>
<p dir="auto">I am using the  0.10.6 (December) release of VS Code and building a debug adapter. When returning strings with newlines (\n) in the body.result of a DebugProtocol.EvaluateResponse the result printed in the debug console has literal \n strings shown instead of printing on multiple lines.</p>
<p dir="auto">Example:</p>
<p dir="auto">Returning this</p>
<p dir="auto">response.body = {<br>
result: 'ABC\n123',<br>
variablesReference: 0<br>
};</p>
<p dir="auto">Should print</p>
<p dir="auto">ABC<br>
123</p>
<p dir="auto">on the debug console. Instead it prints</p>
<p dir="auto">ABC\n123</p>