Application runs very slow using the debugger
Debugging via SWD using either STLink or JLinkEdu from STM32CubeIDE to a STM32F405, I've noticed the application runs around 16 times slower when its run in the debugger.
Also the USB (Virtual Com device) does not even appear on my host PC when the debugger is launched from inside STM32CubeIDE
To attempt to isolate the problem, I've tried a STLink as well as JLinkEdu and the result was the same.
If I run the JLinkGDBServerCLI using the command line cut and past from the Debug Configuations in STM32CubeIDE and separately run GDB (arm-none-eabi-gdb), the application runs at full speed, and the USB device works fine.
I've looked at the Debug configuation settings in STM32Cube, and tried changing various things e.g. Live Expressions, but this made no difference.
Can anyone advise how to resolve this problem.