Thoughts on debuggers...

It is generally accepted that the lack of debugging capabilities is a weakness of Arduino.
It is also a common observation that most microcontroller debuggers are pretty complex to use; probably not suitable for most of the target audience of Arduino. Also, the AVR’s internal debugging capabilities are largely proprietary and undocumented (as well as being “weak” - rewrite flash for every breakpoint?) :frowning:

So wondering whether anyone has thoughts on what sort of debugging capabilities MIGHT be most useful FOR ARDUINO. Sort of the “most bang for least complexity.” Perhaps using “-finstrument-functions”, which would allow “debugging” code to be called at the beginning/end of each function. (alas, part of the “Arduino style” de-emphasizes the use of functions.)