Do not reset the program in Debug mode
this is requedted for a while
in the meantime if you have a board with a physical reset button
give a run and press the reset h/w button that will reset everything and debugger shall hit the main brakepoint again.
alternatively you can add a function in your project that call NVIC_SystemReset()
when you need to reset while stoped in debugger head up to this fucntion code
right clijck at use “move to line” thsi will set pc here, let’s run it will reset the mcu
that may not alway wok as not all system is reset