Fri, 24 Mar 2017 21:39:11 +0100
report syntax and indentation errors raised by an application or module in the correct manner
DebugClients/Python/DebugBase.py | file | annotate | diff | comparison | revisions | |
changelog | file | annotate | diff | comparison | revisions |
--- a/DebugClients/Python/DebugBase.py Thu Mar 23 20:30:49 2017 +0100 +++ b/DebugClients/Python/DebugBase.py Fri Mar 24 21:39:11 2017 +0100 @@ -803,12 +803,16 @@ filename = excval.filename lineno = excval.lineno charno = excval.offset - - if charno is None: - charno = 0 - filename = os.path.abspath(filename) - realSyntaxError = os.path.exists(filename) + if filename is None: + realSyntaxError = False + else: + if charno is None: + charno = 0 + + filename = os.path.abspath(filename) + realSyntaxError = os.path.exists(filename) + except (AttributeError, ValueError): message = "" filename = ""
--- a/changelog Thu Mar 23 20:30:49 2017 +0100 +++ b/changelog Fri Mar 24 21:39:11 2017 +0100 @@ -10,6 +10,8 @@ - Debugger -- shell autocompleter takes the right global variables into account now -- move the instruction pointer within the current function (Hotkey: F12) + -- report syntax and indentation errors raised by an application or module + in the correct manner - Mercurial Interface -- extended the user configuration dialog