<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/62336>62336</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lldb-vscode] runInTerminal "Unimplemented" error (Windows)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          d-mozulyov
      </td>
    </tr>
</table>

<pre>
    ### Problem

The lldb-vscode debugger always starts an application in an external window (on Windows). If the "runInTerminal" parameter is set to true, the "Unimplimented" error occurs.

![unimplemented_message](https://user-images.githubusercontent.com/10961593/234115177-0fb7f295-231a-487e-952c-38907bdcadbe.png)

### Build lldb-vscode for Windows

1. Download [lldb-vscode-bug.zip](https://github.com/llvm/llvm-project/files/11314121/lldb-vscode-bug.zip) and extract it to a local directory, for example, to `C:\LLDBfix`
2. Clone LLVM 16.0.2 into the sources folder by running the `clone.ps1` script (preferably using a modern version of [PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3))
3. Install an up-to-date C++ compiler for Windows (for example, you can unpack the [winlibs archive](https://github.com/brechtsanders/winlibs_mingw/releases/download/12.2.0-16.0.0-10.0.0-ucrt-r5/winlibs-x86_64-posix-seh-gcc-12.2.0-llvm-16.0.0-mingw-w64ucrt-10.0.0-r5.zip) and add the path to the `bin` directory to `PATH`)
4. Build lldb-vscode for Windows by running the `build-lldb.ps1` script

### Reproducing the problem

1. Install Node.js modules into the local directory (for example, to `C:\LLDBfix`): `npm install `
2. Run VSCode in the directory
3. Run "Extension" launch
4. Change "runInTerminal" to true in target `launch.json`
5. Run "Debug" launch in target sample project
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUlV2v2jgTxz-NuRk5ShwC5IKLAzzoqXR2VbXd7mXl2JPEXceO_HI49NOvHMKB07IrrYQIxDNjz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