Debugging Arduino sketches

I keep reading about questions regarding debugging software, what is this software and what exactly does it do. I have a debugging program for another database manager program, and when you start debug, it executes each line of code one at a time and tells if the line of code is true or false, so you can isolate a coding issue. Is this what Arduino's debug software does, or something else.

Hi @rbryce1

Yes, that is approximately what the Arduino IDE 2.x integrated sketch debugger (as well as other debuggers) does.

You can learn more from this tutorial:

1 Like

Yes, a debugger would allow you to single-step your code.

Also:

  • Step into/out of/over functions
  • Set breakpoints
  • Manually halt (break) execution, and start again
  • Examine & modify memory (including registers)

This wasn't available in Arduino IDE 1; it's one of the New Things in IDE 2

It is pretty much de rigueur in any other microcontroller "IDE".

Thanks, will be looking into this more.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.