有没有办法让可读的gcc的错误和警告输出在命令行?

编程入门 行业动态 更新时间:2024-10-24 04:35:34
本文介绍了有没有办法让可读的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的错误和警告输出在命令行?

本文发布于:2023-10-16 00:18:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1495909.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:没有办法   命令行   可读   错误   gcc

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!