How to make debug files in dwarf2 form

Hi all, how are you?.

I do frequently development through simulation with Proteus and because of that I wanna know how to enable platformio IDE to output debug information .elf file in dwarf2 format.

Thanks in advance for the help

apparently founded, I need to add the debug_build_flags in platformio.ini and add the option gdwarf-2