microsoft/ptvsd

Debug hover: shows empty when hovering over bogus words

isidorn opened this issue ยท 2 comments

Hi, VS Code dev here ๐Ÿ‘‹

  1. Have a python program and hover over some bogus words - like part of a string
  2. Debug hover appears with no content
  3. The issue here is that the python debug for evaluate of "This" returns a successful response. I suggest that for evaluating bogus expressions the python debugger returns a response with success = false

In this picture I am hovering over This.

Related issue: have a bogus expression in the WATCH view. The value is a structured object, instead it shuold just be an error like in the debug console

Screenshot 2019-12-24 at 15 16 03

Screenshot 2019-12-24 at 15 17 57

fyi @qubitron @DonJayamanne

I think it's possible that this is this way because returning success=false on some cases force-stopped the debugger on Visual Studio (but I think that this should be fixed now), so, returning success=false should be ok at this point (but we should double-check with the Visual Studio team).

I created #2014 to address the issue related to the error as a str.

Ok thanks.