No module named gdb -> Can't start debugging

Hey there,
I am a little bit lost while I’m trying to debug my Arduino code. I have added the avr-debugger project to my platformio.ini but alway get the following error message and don’t know to handle it.


undefinedPython Exception <type ‘exceptions.ImportError’> No module named gdb:


Could not load the Python gdb module from `/Users/jenkins/jenkins/workspace/avr-gcc-staging/label/mac-mini/objdir/share/gdb/python’.

Limited Python support is available from the _gdb module.

Suggest passing --data-directory=/path/to/gdb/data-directory.


platform = atmelavr
board = megaatmega2560
framework = arduino
monitor_speed = 115200
debug_tool = avr-stub
debug_port = /dev/cu.usbserial-14220
; GDB stub implementation
lib_deps =

I’m on macOS 10.15.7 Catalina and copied the Serial port from the device list in platofrmIO.
It would be nice if someone could help me to get it work.

The quoted error is in the total process ignorable. The error is not in Python but in something else. Can you post the full output of the “Debug Console” tab?

I don’t know what happen but now it works. The only thing I did was to install avr-gdb through mac ports and after it also didnt work I deinstalled it. But the strange thing is that now i can debug…
I will keep watching it.