Debugger/DebuggerInterfacePython2.py

branch
jsonrpc
changeset 5137
089401c122c5
parent 5136
b1dde2dc14bd
child 5140
01484c0afbc6
equal deleted inserted replaced
5136:b1dde2dc14bd 5137:089401c122c5
850 import json 850 import json
851 851
852 try: 852 try:
853 commandDict = json.loads(jsonStr.strip()) 853 commandDict = json.loads(jsonStr.strip())
854 except json.JSONDecodeError as err: 854 except json.JSONDecodeError as err:
855 # TODO: implement real error handling 855 E5MessageBox.critical(
856 ##print(str(err)) 856 None,
857 self.tr("Debug Protocol Error"),
858 self.tr("""<p>The response received from the debugger"""
859 """ backend could not be decoded. Please report"""
860 """ this issue with the received data to the"""
861 """ eric bugs email address.</p>"""
862 """<p>Error: {0}</p>"""
863 """<p>Data:<br/>{0}</p>""").format(
864 str(err), Utilities.html_encode(jsonStr.strip())),
865 E5MessageBox.StandardButtons(
866 E5MessageBox.Ok))
857 return 867 return
858 868
859 method = commandDict["method"] 869 method = commandDict["method"]
860 params = commandDict["params"] 870 params = commandDict["params"]
861 871

eric ide

mercurial