Debugger/DebugServer.py

changeset 5964
066e6c78a367
parent 5929
4ce93da7616e
child 5995
c49a16f3384c
equal deleted inserted replaced
5963:14522ec8cd08 5964:066e6c78a367
243 self.watchpointModel.dataAboutToBeChanged.connect( 243 self.watchpointModel.dataAboutToBeChanged.connect(
244 self.__watchPointDataAboutToBeChanged) 244 self.__watchPointDataAboutToBeChanged)
245 self.watchpointModel.dataChanged.connect(self.__changeWatchPoints) 245 self.watchpointModel.dataChanged.connect(self.__changeWatchPoints)
246 self.watchpointModel.rowsInserted.connect(self.__addWatchPoints) 246 self.watchpointModel.rowsInserted.connect(self.__addWatchPoints)
247 247
248 self.__maxVariableSize = Preferences.getDebugger("MaxVariableSize")
249
248 self.__registerDebuggerInterfaces() 250 self.__registerDebuggerInterfaces()
249 251
250 def getHostAddress(self, localhost): 252 def getHostAddress(self, localhost):
251 """ 253 """
252 Public method to get the IP address or hostname the debug server is 254 Public method to get the IP address or hostname the debug server is
301 303
302 self.__debuggerInterfaces = {} 304 self.__debuggerInterfaces = {}
303 self.__debuggerInterfaceRegistry = {} 305 self.__debuggerInterfaceRegistry = {}
304 for interfaceName, getRegistryData in registeredInterfaces.items(): 306 for interfaceName, getRegistryData in registeredInterfaces.items():
305 self.registerDebuggerInterface(interfaceName, getRegistryData) 307 self.registerDebuggerInterface(interfaceName, getRegistryData)
308
309 self.__maxVariableSize = Preferences.getDebugger("MaxVariableSize")
306 310
307 def registerDebuggerInterface(self, interfaceName, getRegistryData): 311 def registerDebuggerInterface(self, interfaceName, getRegistryData):
308 """ 312 """
309 Public method to register a debugger interface. 313 Public method to register a debugger interface.
310 314
1125 1129
1126 @param scope the scope of the variables (0 = local, 1 = global) 1130 @param scope the scope of the variables (0 = local, 1 = global)
1127 @param filterList list of variable types to filter out (list of int) 1131 @param filterList list of variable types to filter out (list of int)
1128 @param framenr framenumber of the variables to retrieve (int) 1132 @param framenr framenumber of the variables to retrieve (int)
1129 """ 1133 """
1130 self.debuggerInterface.remoteClientVariables(scope, filterList, 1134 self.debuggerInterface.remoteClientVariables(
1131 framenr) 1135 scope, filterList, framenr, self.__maxVariableSize)
1132 1136
1133 def remoteClientVariable(self, scope, filterList, var, framenr=0): 1137 def remoteClientVariable(self, scope, filterList, var, framenr=0):
1134 """ 1138 """
1135 Public method to request the variables of the debugged program. 1139 Public method to request the variables of the debugged program.
1136 1140
1138 @param filterList list of variable types to filter out (list of int) 1142 @param filterList list of variable types to filter out (list of int)
1139 @param var list encoded name of variable to retrieve (string) 1143 @param var list encoded name of variable to retrieve (string)
1140 @param framenr framenumber of the variables to retrieve (int) 1144 @param framenr framenumber of the variables to retrieve (int)
1141 """ 1145 """
1142 self.debuggerInterface.remoteClientVariable( 1146 self.debuggerInterface.remoteClientVariable(
1143 scope, filterList, var, framenr) 1147 scope, filterList, var, framenr, self.__maxVariableSize)
1144 1148
1145 def remoteClientSetFilter(self, scope, filterStr): 1149 def remoteClientSetFilter(self, scope, filterStr):
1146 """ 1150 """
1147 Public method to set a variables filter list. 1151 Public method to set a variables filter list.
1148 1152

eric ide

mercurial