What’s your platformio.ini?
platformio.ini
Possibly related report on another F4 board: Target Halted Due to debug-request - #8 by fek9