有没有办法让可读的gcc的错误和警告输出在命令行? [英] Is there any way to get readable gcc error and warning output at the command line?

查看:172
本文介绍了有没有办法让可读的gcc的错误和警告输出在命令行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关一些长期的错误,海湾合作委员会输出致密,有很多自动换行等。特别是当错误是微妙的,它可以带我10-30秒眯眼用我的眼睛来分析它。

For some long errors, the gcc output is dense and has lots of line-wrapping etc. Especially when errors are subtle, it can take me 10-30 seconds of squinting to parse it with my eyes.

我带到这个粘贴在一个开放的code-编辑器窗口来了解一些基本的语法高亮,使与正则表达式的格式化。

I've taken to pasting this in an open code-editor window to get some basic syntax highlighting and enable reformatting with regex's.

有没有人发明了一种更加自动化的方法?

Has anyone invented a more automated method?

推荐答案

我发现 colorgcc 是无价的。通过引入着色,它变得更容易精神分析的gcc错误信息文本,特别是当模板都有涉及。

I've found colorgcc to be invaluable. By introducing coloring, it becomes much easier to mentally parse the text of gcc error messages, especially when templates are involved.

这篇关于有没有办法让可读的gcc的错误和警告输出在命令行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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