如何调试在Arduino硬件上运行的Arduino代码? [英] How do you debug Arduino code running on Arduino hardware?

查看:886
本文介绍了如何调试在Arduino硬件上运行的Arduino代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

有没有办法设置源代码断点,在实际的硬件上运行代码, div>

Visual Micro 用于Microsoft Visual Studio 2015社区版(免费)的插件为Arduino提供了一个USB调试器。它允许你按照你所描述的那样做。 (不要忘了在安装安装期间点击安装C ++)



调试器支持串行,RF,蓝牙和一些WiFi。它允许在Arduino运行时监视或更新变量的值。包括图表和数据/针可视化以及观察,追踪,休息。





新闻:2016年1月还包括发布Arduino Zero的Gdb调试器。与Serial / Bluethooth调试器一样,Gdb版本支持ino / cpp源代码,但还支持Arduino内核和库的调试。支持许多功能,例如: - 逐步执行,逐步输出,步进指令或源代码行,内存,寄存器,本地,监视,实时表达,堆栈跟踪。


Is there any way to set source-level breakpoints, run the code on actual hardware, and be able to inspect variables and continue?

解决方案

The Visual Micro plugin for Microsoft Visual Studio 2015 Community Edition (free) provides a USB debugger for Arduino. It allows you to do exactly as you describe. (don't forget to click to install C++ during Ide install)

The debugger supports Serial, RF, Bluetooth and some WiFi. It enables the values of variables to be watched or update while the Arduino runs. Chart and data/pin visualizations along with watch, trace, break are included.

news: January 2016 also includes release of a Gdb debugger for the Arduino Zero. As with the Serial/Bluethooth debugger, the Gdb version supports ino/cpp source code but additionally supports debug of Arduino core and libraries. Supports many features such as:- step over, step out, step instruction or source line, memory, registers, locals, watch, live expressions, stack trace.

这篇关于如何调试在Arduino硬件上运行的Arduino代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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