Many IDE’s have debugging support built right ... In my case the STM32-Discovery F0 board has support built-in. To compile with debugging information simply add the ‘-g’ compiler flag ...
When we debug, we are going to do that anyway. What’s really important though is back under the STM32/tools directory is another directory with the compiler that the IDE uses to compile your code.