mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Merge pull request #95 from DonJayamanne/uncaughtException
breaking on unhandled exceptions should be treated as exceptions
This commit is contained in:
commit
758586d934
1 changed files with 5 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue