简体   繁体   English

Eclipse控制台输出未显示是否删除了某些打印件

[英]Eclipse console output not showing if some prints removed

This is incredible! 这难以置信! I am running a C program on Eclipse. 我正在Eclipse上运行C程序。 I have a lot of prints, but still not reaching the limit of 1MB (overall it's 64K text output, so no big deal). 我有很多打印件,但仍然没有达到1MB的限制(总体来说是64K文本输出,所以没什么大不了的)。 Then I noticed that by adding more prints the console output was blank. 然后,我注意到通过添加更多打印,控制台输出为空白。 I thought I had too many prints, but when removing some of them, the output was randomly behaving: for instance, if a print was removed, it didn't show up. 我以为我有太多打印件,但是当删除其中一些打印件时,输出是随机的:例如,如果删除了打印件,则不会出现。 Then I re-enabled that print, and removed another one, and the output was showing up. 然后,我重新启用了该打印,并删除了另一张,然后显示输出。 Then I removed one more print, and the output was showing up some more information (like I reached its limit and I was freeing some space), but then I removed another more print, and mysteriously the output was blank again. 然后我又移除了一个打印件,并且输出显示了更多的信息(就像我达到了极限,并且释放了一些空间),但是随后我又移除了另外的打印件,而且输出又神秘地变成了空白。

It is totally random, and it's not related to the MAX number of print (which, by the way, I set to unlimited). 它是完全随机的,并且与最大打印数无关(顺便说一下,我将其设置为无限制)。 What really puzzles me it that if I REMOVE prints, sometime the output is not showing, which I can't really figure out why. 真正令我感到困惑的是,如果我删除打印,有时输出不会显示,我无法真正弄清楚原因。

I also restart multiple times my machine, checked it is not running out of memory, and all the basic stuff I could think about, but nothing... Has someone already seen this problem? 我还多次重启计算机,检查它是否没有内存不足,以及所有我能想到的基本信息,但是什么也没有……有人已经看到此问题了吗?

I have seen this problem and never really found a good solution. 我已经看到了这个问题,但从未真正找到好的解决方案。 In the past restarting Eclipse has helped and I started putting fflush(NULL) in my code to flush all buffers. 过去,重新启动Eclipse很有帮助,我开始将fflush(NULL)放入代码中以刷新所有缓冲区。 I experienced this problem in Kepler but never in Luna. 我在开普勒遇到了这个问题,但在卢娜却从未遇到过。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM