CLion debugger terminal no output.
已回答
I'm sure I'm getting something simple wrong, but whenever I try to debug a C program in CLion the debugger console pops up and says that it's running my executable, but there is never any output and I cannot interact with my program. The program works fine in run mode.
请先登录再写评论。
Hi David!
What OS and toolchain do you use?
Is it
printf("Some text");orprintf("Some text \n");?Sorry for the late response, I was on vacation over the weekend.
I am on Windows 10 and here is the toolchain. Also, this occurs with both printf statements ending in \n and those ending in another character.
Thank you for the details! It seems to be related to https://youtrack.jetbrains.com/issue/CPP-11773. Feel free to comment or upvote in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
As a workaround you can try adding
fflush(stdout).