1
Vote

Attach to process dialog error message

description

Create new python app
Debug/Attach to Process
In Transport combo, select Python remote debugging (unsecured)
Click the Refresh button near bottom right

The error message that comes up is too low level.
---------------------------
Microsoft Visual Studio
---------------------------
Unable to connect to ''.  The format of one argument does not meet the contract of the method.
---------------------------
OK   
---------------------------
Image

file attachments

comments

pminaev wrote Jul 28 at 10:07 PM

Unfortunately, there's no way to return an error message to the debugger for it to display, so we're restricted to stock HRESULT messages (this particular one is for FormatException). We can show our own error dialog, but then it'll pop up whenever someone tries to attach programmatically, too...

pminaev wrote Jul 29 at 6:40 PM

On a second thought, we already pop up UI prompts for connection errors, and this isn't really any different.