src/eric7/Debugger/DebuggerInterfacePython.py

branch
eric7
changeset 10373
093dcebe5ecb
parent 10321
4a017fdf316f
child 10417
c6011e501282
equal deleted inserted replaced
10372:1444b4bee64b 10373:093dcebe5ecb
132 @rtype QProcess or None 132 @rtype QProcess or None
133 """ 133 """
134 proc = QProcess(self) 134 proc = QProcess(self)
135 if environment is not None: 135 if environment is not None:
136 env = QProcessEnvironment() 136 env = QProcessEnvironment()
137 for key, value in list(environment.items()): 137 for key, value in environment.items():
138 env.insert(key, value) 138 env.insert(key, value)
139 proc.setProcessEnvironment(env) 139 proc.setProcessEnvironment(env)
140 args = arguments[:] 140 args = arguments[:]
141 if workingDir: 141 if workingDir:
142 proc.setWorkingDirectory(workingDir) 142 proc.setWorkingDirectory(workingDir)
695 Public method to return the IDs of the connected debugger backends. 695 Public method to return the IDs of the connected debugger backends.
696 696
697 @return list of connected debugger backend IDs 697 @return list of connected debugger backend IDs
698 @rtype list of str 698 @rtype list of str
699 """ 699 """
700 return sorted(self.__connections.keys()) 700 return sorted(self.__connections)
701 701
702 def __flush(self): 702 def __flush(self):
703 """ 703 """
704 Private slot to flush the queue. 704 Private slot to flush the queue.
705 """ 705 """
1039 @param cond condition of the breakpoint 1039 @param cond condition of the breakpoint
1040 @type str 1040 @type str
1041 @param temp flag indicating a temporary breakpoint 1041 @param temp flag indicating a temporary breakpoint
1042 @type bool 1042 @type bool
1043 """ 1043 """
1044 debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys()) 1044 debuggerList = [debuggerId] if debuggerId else list(self.__connections)
1045 for debuggerId in debuggerList: 1045 for debuggerId in debuggerList:
1046 self.__sendJsonCommand( 1046 self.__sendJsonCommand(
1047 "RequestBreakpoint", 1047 "RequestBreakpoint",
1048 { 1048 {
1049 "filename": self.translate(fn, False), 1049 "filename": self.translate(fn, False),
1066 @param line linenumber of the breakpoint 1066 @param line linenumber of the breakpoint
1067 @type int 1067 @type int
1068 @param enable flag indicating enabling or disabling a breakpoint 1068 @param enable flag indicating enabling or disabling a breakpoint
1069 @type bool 1069 @type bool
1070 """ 1070 """
1071 debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys()) 1071 debuggerList = [debuggerId] if debuggerId else list(self.__connections)
1072 for debuggerId in debuggerList: 1072 for debuggerId in debuggerList:
1073 self.__sendJsonCommand( 1073 self.__sendJsonCommand(
1074 "RequestBreakpointEnable", 1074 "RequestBreakpointEnable",
1075 { 1075 {
1076 "filename": self.translate(fn, False), 1076 "filename": self.translate(fn, False),
1091 @param line linenumber of the breakpoint 1091 @param line linenumber of the breakpoint
1092 @type int 1092 @type int
1093 @param count number of occurrences to ignore 1093 @param count number of occurrences to ignore
1094 @type int 1094 @type int
1095 """ 1095 """
1096 debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys()) 1096 debuggerList = [debuggerId] if debuggerId else list(self.__connections)
1097 for debuggerId in debuggerList: 1097 for debuggerId in debuggerList:
1098 self.__sendJsonCommand( 1098 self.__sendJsonCommand(
1099 "RequestBreakpointIgnore", 1099 "RequestBreakpointIgnore",
1100 { 1100 {
1101 "filename": self.translate(fn, False), 1101 "filename": self.translate(fn, False),
1116 @param setWatch flag indicating setting or resetting a watch expression 1116 @param setWatch flag indicating setting or resetting a watch expression
1117 @type bool 1117 @type bool
1118 @param temp flag indicating a temporary watch expression 1118 @param temp flag indicating a temporary watch expression
1119 @type bool 1119 @type bool
1120 """ 1120 """
1121 debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys()) 1121 debuggerList = [debuggerId] if debuggerId else list(self.__connections)
1122 for debuggerId in debuggerList: 1122 for debuggerId in debuggerList:
1123 # cond is combination of cond and special (s. watch expression 1123 # cond is combination of cond and special (s. watch expression
1124 # viewer) 1124 # viewer)
1125 self.__sendJsonCommand( 1125 self.__sendJsonCommand(
1126 "RequestWatch", 1126 "RequestWatch",
1141 @param cond expression of the watch expression 1141 @param cond expression of the watch expression
1142 @type str 1142 @type str
1143 @param enable flag indicating enabling or disabling a watch expression 1143 @param enable flag indicating enabling or disabling a watch expression
1144 @type bool 1144 @type bool
1145 """ 1145 """
1146 debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys()) 1146 debuggerList = [debuggerId] if debuggerId else list(self.__connections)
1147 for debuggerId in debuggerList: 1147 for debuggerId in debuggerList:
1148 # cond is combination of cond and special (s. watch expression 1148 # cond is combination of cond and special (s. watch expression
1149 # viewer) 1149 # viewer)
1150 self.__sendJsonCommand( 1150 self.__sendJsonCommand(
1151 "RequestWatchEnable", 1151 "RequestWatchEnable",
1166 @param cond expression of the watch expression 1166 @param cond expression of the watch expression
1167 @type str 1167 @type str
1168 @param count number of occurrences to ignore 1168 @param count number of occurrences to ignore
1169 @type int 1169 @type int
1170 """ 1170 """
1171 debuggerList = [debuggerId] if debuggerId else list(self.__connections.keys()) 1171 debuggerList = [debuggerId] if debuggerId else list(self.__connections)
1172 for debuggerId in debuggerList: 1172 for debuggerId in debuggerList:
1173 # cond is combination of cond and special (s. watch expression 1173 # cond is combination of cond and special (s. watch expression
1174 # viewer) 1174 # viewer)
1175 self.__sendJsonCommand( 1175 self.__sendJsonCommand(
1176 "RequestWatchIgnore", 1176 "RequestWatchIgnore",

eric ide

mercurial