From 59750ea88797dacd8774a8a2646f1c7168f67c7c Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Tue, 29 Jan 2019 01:06:30 -0800 Subject: [PATCH] Handle subscripting a potentially None object. --- .../pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ptvsd/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py b/src/ptvsd/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py index f76fff0ef..f48dcce23 100644 --- a/src/ptvsd/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py +++ b/src/ptvsd/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py @@ -53,6 +53,9 @@ def _pydev_stop_at_break(line): except KeyError: pydev_log.debug("Couldn't find breakpoint in the file {} on line {}".format(frame.f_code.co_filename, line)) return + except TypeError: + pydev_log.debug("Breakpoints not available for the file {}".format(frame.f_code.co_filename)) + return if python_breakpoint: pydev_log.debug("Suspending at breakpoint in file: {} on line {}".format(frame.f_code.co_filename, line))