microsoft / microsoft/vscode-cpptools
Unable to launch external console on MacOS when using GDB
Aperta
@WardenGnaw ci sta già lavorando.
Dal 15/5/2019.
debugger
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Type: Debugger
Describe the bug
- OS and Version: MacOS Mojave
- VS Code Version: 1.33.1
- C/C++ Extension Version:0.23.1
- Other extensions you installed (and if the issue persists after disabling them):
- A clear and concise description of what the bug is.
When trying to debug on macOS using gdb instead of lldb external console is not started, even when "externalConsole": true is set in launch.json.
To Reproduce
Please include a code sample and launch.json configuration.
Steps to reproduce the behavior:
- Create simple hello world program like one below:
#include <iostream>
#include <string>
using namespace std;
int main()
{
string name;
cin >> name;
cout << "Hello " + name << endl;
return 0;
}
- Create launch.json like the one here:
{
"name": "(gdb) Launch Mac",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}.out",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
- Launch debugger.
- No external input console is started, disabling user to enter
namewhen debugging.
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.