Attempting a debug connection to a device with RDP protection gives misleading error message
I just spent some time trying to get a debug session going in VSCode ony to be given the rather obscure error message: "bound doStepConnectToTarget Failed: could not connect (error 138): The system tried to join a drive to a directory on a joined drive."
Eventually I realised what it was - I had enabled RDP protection on the device (STM32C5) so of course it could not connect.
May I suggest that a more appropriate error message is given in such circumstances?
(this is with stlink gdb debugger, latest version.)