According to the docs, it is possible to debug as sudo using an external terminal for the password input.
This doesn't work when debugging remotely, for that you need the integrated terminal and therefore can't sudo.
A use case for this is Raspberry Pi development - connecting remotely and needing to run as sudo to control certain hardware.