STM32CubeIDE building Release instead of Debug
Problem:
I recently updated to 2.0.0 of STM32CubeIDE and I encountered an issue when attempting to build for Debug. I first noticed an issue when trying to run a Debug Configuration. Before 2.0.0, it would build Debug before flashing the built firmware and starting the debugging server; pretty much default settings. Today, it started skipping the build step. I tried building Debug manually with the dropdown on the hammer icon and clicking "Debug." Instead, it built for Release.
Solutions:
- Right click on the project -> Build Configurations -> Build Selected... and select Debug.
AND
- Setting Debug as the active build and right click on the project -> Build Project
These solutions would build for Debug AND clear both of the above issues. As in the hammer icon -> Debug would actually build for Debug and the Debug Configuration would build before flashing and debugging.
