Eclipse CDT构建控制台输出不显示整个编译器输出 [英] Eclipse CDT Build Console output not displaying entire compiler output

查看:135
本文介绍了Eclipse CDT构建控制台输出不显示整个编译器输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建和调试大型C ++程序时,到控制台的输出太大,以至于控制台会中断输出的开始。这是特别令人讨厌的,因为编译器输出的第一个错误通常是调试目的最重要的。

When building and debugging a large C++ program, the output to the console is so large that the console cuts off the start of the output. This is particularly annoying as the first error outputted by the compiler is often the most important for debugging purposes.

b $ b所以问题是:我如何查看整个控制台输出?

So the question is: How do I view the entire console output?

推荐答案


  1. 更改控制台限制的行数。转到窗口 - >首选项 - > C / C ++ - >构建 - >控制台,然后更改限制控制台输出(行数):到高于默认值500的数字。

  1. Change how many lines the console is limited to. Go to Window -> Preferences -> C/C++ -> Build -> Console, then change "Limit console output (number of lines):" to a number higher than the default 500.

将控制台输出保存到没有预定义行限制的文件。窗口 - >首选项 - > C / C ++ - >构建 - >日志,然后将日志文件位置的位置更改为您可以轻松访问它的位置。我建议不要打开Windows默认文本编辑器中的文件,因为它失去任何有用的格式,而eclipse的文本编辑器工作得很好。

Make the console output save to a file, which doesn't have a predefined line limit. Window -> Preferences -> C/C++ -> Build -> Logging, then change the location of the Log file location to somewhere you can easily access it. I'd advise not opening the file in Window's default text editor as it loses any helpful formatting, instead eclipse's text editor works well.

这篇关于Eclipse CDT构建控制台输出不显示整个编译器输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆