Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Fixes breaking on raised or uncaught exception in VS Code #80

Merged
merged 1 commit into from
Feb 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions ptvsd/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,10 +727,9 @@ def on_setBreakpoints(self, request, args):
def on_setExceptionBreakpoints(self, request, args):
# TODO: docstring
filters = args['filters']
exception_options = args['exceptionOptions']
use_exception_options = len(exception_options) > 0
exception_options = args.get('exceptionOptions', [])

if use_exception_options:
if exception_options:
self.exceptions_mgr.apply_exception_options(exception_options)
else:
self.exceptions_mgr.remove_all_exception_breaks()
Expand Down