DebugClients/Python2/DebugClientBase.py

branch
jsonrpc
changeset 5140
01484c0afbc6
parent 5135
04905a8681dc
child 5144
1ab536d25072
equal deleted inserted replaced
5137:089401c122c5 5140:01484c0afbc6
938 """ 938 """
939 self.sendJsonCommand("ResponseLine", { 939 self.sendJsonCommand("ResponseLine", {
940 "stack": stack, 940 "stack": stack,
941 }) 941 })
942 942
943 def sendCallTrace(self, event, fromStr, toStr): 943 def sendCallTrace(self, event, fromInfo, toInfo):
944 """ 944 """
945 Public method to send a call trace entry. 945 Public method to send a call trace entry.
946 946
947 @param event trace event (call or return) 947 @param event trace event (call or return)
948 @type str 948 @type str
949 @param fromStr pre-formatted origin info 949 @param fromInfo dictionary containing the origin info
950 @type str 950 @type dict with 'filename', 'linenumber' and 'codename'
951 @param toStr pre-formatted target info 951 as keys
952 @type str 952 @param toInfo dictionary containing the target info
953 @type dict with 'filename', 'linenumber' and 'codename'
954 as keys
953 """ 955 """
954 self.sendJsonCommand("CallTrace", { 956 self.sendJsonCommand("CallTrace", {
955 "event": event[0], 957 "event": event[0],
956 "from": fromStr, 958 "from": fromInfo,
957 "to": toStr, 959 "to": toInfo,
958 }) 960 })
959 961
960 def sendException(self, exceptionType, exceptionMessage, stack): 962 def sendException(self, exceptionType, exceptionMessage, stack):
961 """ 963 """
962 Public method to send information for an exception. 964 Public method to send information for an exception.

eric ide

mercurial