Skip to content

Commit a5fd614

Browse files
elliott-beachDonJayamanne
authored andcommitted
show class of exception when evaluating expr (#735)
Fixes #661
1 parent be2bb00 commit a5fd614

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pythonFiles/PythonTools/visualstudio_py_debugger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2191,7 +2191,8 @@ def report_execution_error(exc_text, execution_id):
21912191

21922192
def report_execution_exception(execution_id, exc_info):
21932193
try:
2194-
exc_text = str(exc_info[1])
2194+
exc_type, exc_value, traceback = exc_info
2195+
exc_text = '{}: {}'.format(get_exception_name(exc_type), exc_value)
21952196
except:
21962197
exc_text = 'An exception was thrown'
21972198

0 commit comments

Comments
 (0)