Simple avr_debug for Arduino?

Sysprogs forums Forums VisualGDB Simple avr_debug for Arduino?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36165
    arrow201
    Participant

    My go to micro is STM32, but there’s times I like to run up a Arduino project simply because if you get hold of a sensor, most likely there’s a library for it to quickly test it out. 🙂 It would be nice to be able to step through the code. I know there’s this tutorial:
    https://visualgdb.com/tutorials/arduino/avr/debug/
    …but this is quite involved, needing an external board, modding the target UNO, etc. Looking for something more simple, I noticed this is popular:
    https://github.com/jdolinay/avr_debug
    …but I’m having problems how to implement it in VisualGDB. I’m guessing you have to go to: Debug Settings and use “Custom GDB Stub” or “Full Custom Mode”? There’s also settings in “Embedded Debug Tweaking” ?
    I’ve seen it used with Visual Studio Code/PlatformIO and there’s another Visual Studio/Arduino product that uses it as well. So, i’m pretty sure it can be done and wondering if anybody has successfully got it working?

    Thanks.

    #36190
    support
    Keymaster

    Hi,

    We have checked the avr_debugger repository and it looks like they do support Arduino. However, you also need to flash a custom bootloader and patch the original Arduino core (note that the patches appear to be 7 years old) in order to use that.

    If you can get it working via command line to the point where you can debug everything by running gdb manually, we can help you configure VisualGDB to match that setup.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.