如何在没有Arduino Zero的情况下调试我的Arduino代码?

huangapple go评论59阅读模式
英文:

how can I debug the code of my arduino without arduino zero

问题

唯一我知道如何调试Arduino的方式是使用SerialPort,这就像在工作中尝试了vsCode之后使用一种奇怪的工具。有人能展示一下更优先的方法是如何实现的吗?

SerialPort太慢了,如果我想要了解关键部分发生了什么,这并不是最佳的方式。

英文:

The only way I know how to debug an arduino is usen the SerialPort which is like using a odd tool after trying vsCode in my job. Could someone show me how is it the prefered way to acomplish it?

SerialPort is just too slow and if I want to know what is happening in a critical section is not the best way to do it.

答案1

得分: 0

Arduino没有自带的自定义调试工具。很抱歉告诉你,与大多数其他集成开发环境不同,Arduino IDE内没有官方的Arduino调试功能。

但是,多亏了社区,我们可以使用非官方工具,如Arduino模拟器和仿真器,或外部软件调试工具。个人更喜欢模拟器。一旦你习惯了它,就更简单了。

有关更多信息,请参阅:https://www.circuito.io/blog/arduino-debugging/

英文:

Arduino doesn’t come with a custom debugging tool. I`m sorry to tell you that unlike most other IDEs, there is no official Arduino debugging feature inside the arduino IDE.

However, thanks to the community we have access to unofficial tools like using Arduino simulators and emulators or and external software debuggin tool.
Personally I prefer simulator. Once you get use of it is simpler.

More about this here: https://www.circuito.io/blog/arduino-debugging/

huangapple
  • 本文由 发表于 2023年2月16日 17:47:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/75470453.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定