Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you capture console output under debug in clion?

Tags:

c++

clion

I'm using clion to write a console application. If I simply run the program, I can see the results of my cout calls. But if I debug it, no output occurs under the Debug Console tab other than my exe's name and Process finished with exit code 0. Is there an extra step to get console output to show up under debug in clion?

Or is this not even clion specific and is a general thing people who have been using gdb already know about?

like image 649
jep Avatar asked May 18 '15 05:05

jep


People also ask

How do you find the output in CLion?

After CLion finishes running your tests, it shows the results in the Run tool window on the Test Runner tab. The console on the right shows the output of the current test session.

How do I use debug console?

To open the Debug Console, use the Debug Console action at the top of the Debug pane or use the View: Debug Console command (Ctrl+Shift+Y). Expressions are evaluated after you press Enter and the Debug Console REPL shows suggestions as you type.

How do I use debug mode in CLion?

For debug press Shift+F9 . To help you inspect the state of your code during debugging, CLion equips you with many useful shortcuts like Step over/into ( F8/F7 ), Step out ( Shift+F8 ), or Run to cursor ( Alt+F9 ).

What is a debug output?

Debug Output is an OpenGL feature that makes debugging and optimizing OpenGL applications easier. Briefly, this feature provides a method for the driver to provide textual message information back to the application.


1 Answers

According to the JetBrains'post on clion debugger, you can see the debug output by click the "Console" tab, which is next to "Debugger" tab:

enter image description here

like image 102
xxks-kkk Avatar answered Oct 27 '22 01:10

xxks-kkk