CLion debugger terminal no output.

Answered

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.

0
3 comments

Hi David!

What OS and toolchain do you use?

Is it printf("Some text"); or printf("Some text \n");?

0
Avatar
Permanently deleted user

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.

0

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).

1

Please sign in to leave a comment.