Failed getting template line shouldn't break debugging for the current frame (PY-20545)

This commit is contained in:
Elizaveta Shashkova
2016-10-24 15:01:38 +03:00
parent 9085c59f36
commit 98a6439c2a
@@ -406,7 +406,7 @@ def get_breakpoint(plugin, main_debugger, pydb_frame, frame, event, args):
if django_breakpoints_for_file:
pydev_log.debug("Breakpoints for that file: %s\n" % django_breakpoints_for_file)
template_line = _get_template_line(frame)
pydev_log.debug("Tracing template line: %d\n" % template_line)
pydev_log.debug("Tracing template line: %s\n" % str(template_line))
if dict_contains(django_breakpoints_for_file, template_line):
django_breakpoint = django_breakpoints_for_file[template_line]