The debugger in STM32CubeIDE is not just a toy; it’s professional-grade. For complex projects, utilize:

One of the primary advantages of using an official tool from ST is the deep integration with debugging hardware like the ST-LINK.

STM32CubeIDE is the official, free integrated development environment (IDE) from STMicroelectronics designed for STM32 microcontrollers. It combines several key tools—code editing, compiling, and debugging—into a single platform based on Eclipse or VS Code frameworks.