microsoft / microsoft/vscode-cpptools
[Windows] cppdbg debugger Unable to Use Integrated Terminal with mingw
@WardenGnaw ci sta già lavorando.
Dal 14/5/2020.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Type: Debugger
Describe the bug
I want to use the ingerated terminal inside VSC. I can only get inputs if I enable "externalConsole", which doesn't solve this issue as it requires using an external terminal.
- OS and Version: Windows 10 64-bit, build 10.0.18363
- VS Code Version: 1.45.1
- C/C++ Extension Version: 0.28.0
To Reproduce
Sample launch.json:
"configurations": [
{
"name": "g++ Build & Debug Folder",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\test.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": true, // Only to way get inputs currently =(
"MIMode": "gdb",
"miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
}
]
Sample C++ Program:
#include <iostream>
int main() {
int input {1};
std::cin >> input;
std::cout << input << '\n';
return 0;
}
Steps to reproduce the behavior:
- Write a simple C++ program that requires user input.
- Start the debugger without enabling "externalConsole".
- Step until you reach a line that requires user input.
Additional context
The following is ran inside the integrated terminal:
'c:\Users\Vrej\.vscode\extensions\ms-vscode.cpptools-0.28.0\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-rzbbs23a.feg' '--stdout=Microsoft-MIEngine-Out-0mxge4rh.udl' '--stderr=Microsoft-MIEngine-Error-gcbm3hqx.mik' '--pid=Microsoft-MIEngine-Pid-imrtgchk.lay' '--dbgExe=C:\MinGW\bin\gdb.exe' '--interpreter=mi'
Then the cursor begins blinking in the new line, but I am unable to give any inputs.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.