How to use the debugger Restart button?

Any suggestions how to use the debugger restart button?

When I am in the debugger, and press on the restart button


I am getting an error in the terminal windows, and have to first close the debugger before being able to restart the debugging session.

Executing task: C:\Users\user\.platformio\penv\Scripts\platformio.exe debug 

Processing my_env (platform: ststm32; board: weact_mini_h750vbtx)
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: ST STM32 (15.6.0) > WeAct Studio MiniSTM32H750VBTX
HARDWARE: STM32H750VBT6 480MHz, 128KB RAM, 512KB Flash
DEBUG: Current (stlink) External (blackmagic, cmsis-dap, jlink, stlink)
 - toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder ->
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 4 compatible libraries
Scanning dependencies...
Dependency Graph
|-- cube_ide      
|-- serial_packets
|-- io
|-- misc
Building in debug mode
*** [.pio\build\my_env\firmware.elf] C:\Users\user\projects\daq\repo\controller\platformio\.pio\build\my_env\firmware.elf: The process cannot access the file because it is being used by another process
========================================== [FAILED] Took 4.46 seconds ==========================================

My platformio.ini

platform = ststm32
extra_scripts =
board = weact_mini_h750vbtx
build_type = debug
debug_tool = stlink
upload_protocol = stlink
debug_build_flags = -O0 -ggdb3 -g3
board_build.ldscript = STM32H750VBTX_FLASH.ld
monitor_port = COM6
lib_archive = no
check_skip_packages = yes
lib_deps = 
build_flags =

This is definitely a bug but ST Nucleo F091RC Restart Failing With An Error · Issue #3152 · platformio/platformio-vscode-ide · GitHub got closed and re-referred… Can you try and get that reopened?