Skip to content

How to show output in integrated terminal instead of debug console? #10116

Answered by ssinzdaryl
ssinzdaryl asked this question in Q&A
Discussion options

You must be logged in to vote

@macTracyHuang

Thanks bro, it works, but if you want to show the output in integrated terminal, i found a better way.

  1. Install a extension named CodeLLDB, a native debugger powered by LLDB.
  2. Modify the "type" property in the "launch.json", change "cppdbg" to "lldb".
  3. You will find some property in launch.json not allowed, remove them.

Then the output can show in integrated terminal.

// launch.json

{
    "configurations": [
        {
            "name": "C/C++: clang++ build and debug active file",
            "type": "lldb",
            "request": "launch",
            "program": "${fileDirname}/${fileBasenameNoExtension}",
            "args": [],
            "cwd": "${fileDirname}",
    …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ssinzdaryl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants