code-debug icon indicating copy to clipboard operation
code-debug copied to clipboard

printf() statement, the result is not immediately displayed on the screen.

Open ghost opened this issue 3 years ago • 2 comments

If submitting a bug please make sure

  • [*] If you are using gdb
    • [*] gdb --version >= 7.7.1
    • [*] it works on the command line with gdb
    • [*] cwd and target are properly set
  • [ ] If you are using lldb
    • [ ] lldb --version >= 3.7.1
    • [ ] it works on the command line with lldb-mi
    • [ ] cwd and target are properly set

Screenshots are helpful but not required

When debugging a printf() statement, the result is not immediately displayed on the screen. There is a problem that is displayed in batches after debugging is finished.

image

ghost avatar Apr 21 '22 04:04 ghost

The main issue is possibly the shared pane of the debugger and the terminal, ideally those would be separate...

GitMensch avatar Apr 24 '22 20:04 GitMensch

Hi @jhyunleehi, have you tried using the terminal attribute as part of your launch configuration to create a separate terminal for the application? This should allow you to see the output, as it is generated (instead of when your application exits), in that terminal window.

"terminal": ""

brownts avatar May 08 '22 15:05 brownts