是否可以在Arduino中显示编译器警告? [英] Is it possible to display compiler warnings in Arduino?

查看:277
本文介绍了是否可以在Arduino中显示编译器警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望Arduino IDE显示编译器警告,我宁愿不必在终端中编译一次以获取警告,也不必通过Arduino再次生成十六进制文件.

在单击验证"按钮时按住Shift键将显示中间命令,但不会显示任何中间命令.不用黑客Arduino IDE就能做到吗?

解决方案

此功能已添加到最新的Arduino源代码中,尽管尚未发布. com/arduino/Arduino/commit/a2235e3cdc3856cbeba7de84e81bfd914b3ebaea"rel =" nofollow> https://github.com/arduino/Arduino/commit/a2235e3cdc3856cbeba7de84e81bfd914b3ebaea ).

它计划包含在下一个主要的Arduino IDE版本(版本1.0)中,该版本当前为计划于2011年10月底发布. 当前候选版本具有此修复程序(截至2011年10月25日)./p>

要在Arduino IDE中启用编译器警告,请打开File |. Preferences然后在Show verbose output during: compilation和/或Show verbose output during: upload上打勾.

I would like the Arduino IDE to display compiler warnings, and I would rather not have to compile once in the terminal for warnings, and again through Arduino to generate the hex file.

Holding down the shift key while clicking the "Verify" button shows intermediate commands, but none of their output. Is this possible without hacking the Arduino IDE?

解决方案

This feature has been added to the latest Arduino source code, although is not yet in a released version (see https://github.com/arduino/Arduino/commit/a2235e3cdc3856cbeba7de84e81bfd914b3ebaea).

It's planned to be included in the next major Arduino IDE release (version 1.0) which is currently planned for release at the end of October 2011. The current release candidate has this fix (as of October 25, 2011).

To enable compiler warnings from within the Arduino IDE, open File | Preferences then tick Show verbose output during: compilation and/or Show verbose output during: upload.

这篇关于是否可以在Arduino中显示编译器警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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