Merge pull request #95 from DonJayamanne/uncaughtException

breaking on unhandled exceptions should be treated as exceptions
This commit is contained in:
Karthik Nadig 2018-02-16 20:40:00 -08:00 committed by GitHub
commit 758586d934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -788,9 +788,13 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
pydevd_comm.CMD_STEP_OVER,
pydevd_comm.CMD_STEP_RETURN,
}
EXCEPTION_REASONS = {
pydevd_comm.CMD_STEP_CAUGHT_EXCEPTION,
pydevd_comm.CMD_ADD_EXCEPTION_BREAK
}
if reason in STEP_REASONS:
reason = 'step'
elif reason == pydevd_comm.CMD_STEP_CAUGHT_EXCEPTION:
elif reason in EXCEPTION_REASONS:
reason = 'exception'
elif reason == pydevd_comm.CMD_SET_BREAK:
reason = 'breakpoint'