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

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

问题描述

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

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.

在单击验证"按钮的同时按住 shift 键会显示中间命令,但没有输出.在不破解 Arduino IDE 的情况下这可能吗?

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?

推荐答案

此功能已添加到最新的 Arduino 源代码中,尽管尚未发布(请参阅启用详细输出时显示编译警告).

This feature has been added to the latest Arduino source code, although is not yet in a released version (see Showing compilation warnings when verbose output is enabled).

计划包含在下一个主要的 Arduino IDE 版本(1.0 版)中,目前为 计划于 2011 年 10 月下旬发布.当前候选版本 已修复此问题(截至 2011 年 10 月 25 日).

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).

要在 Arduino IDE 中启用编译器警告,打开菜单 FilePreferences,然后勾选 Show verbose output during: compiler 和/或 在上传过程中显示详细输出.

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

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

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