microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.51k stars 1.55k forks source link

How to run the debuggee in the debug console or in the integrated terminal #2190

Open weinand opened 6 years ago

weinand commented 6 years ago

I would like to debug a C++ program on linux without installing any additional terminal emulators like Gnome Terminal or XTerm.

Setting "externalConsole" to false doesn't help.

Is there a way to configure the debug session so that it uses VS Code's debug console or the integrated terminal?

pieandcakes commented 6 years ago

@weinand not at this time. We have a backlog item to do the work. (#35)

weinand commented 6 years ago

@pieandcakes thanks! Please note, that using the integrated terminal is really trivial since VS Code does all the heavy lifting. Just send a "runInTerminal" DAP request from your adapter back to VS Code and you are in business. See https://github.com/Microsoft/vscode-node-debug/blob/8c584b207fe91448f18de997f57fe5fbaaae3ce1/src/node/nodeDebug.ts#L1073-L1082

egamma commented 5 years ago

Needs to be re-tested given that the C++ issue is fixed.