Debugger/DebugServer.py

changeset 5964
066e6c78a367
parent 5929
4ce93da7616e
child 5995
c49a16f3384c
diff -r 14522ec8cd08 -r 066e6c78a367 Debugger/DebugServer.py
--- a/Debugger/DebugServer.py	Tue Nov 07 19:37:17 2017 +0100
+++ b/Debugger/DebugServer.py	Wed Nov 08 19:05:55 2017 +0100
@@ -245,6 +245,8 @@
         self.watchpointModel.dataChanged.connect(self.__changeWatchPoints)
         self.watchpointModel.rowsInserted.connect(self.__addWatchPoints)
         
+        self.__maxVariableSize = Preferences.getDebugger("MaxVariableSize")
+        
         self.__registerDebuggerInterfaces()
         
     def getHostAddress(self, localhost):
@@ -304,6 +306,8 @@
         for interfaceName, getRegistryData in registeredInterfaces.items():
             self.registerDebuggerInterface(interfaceName, getRegistryData)
         
+        self.__maxVariableSize = Preferences.getDebugger("MaxVariableSize")
+        
     def registerDebuggerInterface(self, interfaceName, getRegistryData):
         """
         Public method to register a debugger interface.
@@ -1127,8 +1131,8 @@
         @param filterList list of variable types to filter out (list of int)
         @param framenr framenumber of the variables to retrieve (int)
         """
-        self.debuggerInterface.remoteClientVariables(scope, filterList,
-                                                     framenr)
+        self.debuggerInterface.remoteClientVariables(
+            scope, filterList, framenr, self.__maxVariableSize)
         
     def remoteClientVariable(self, scope, filterList, var, framenr=0):
         """
@@ -1140,7 +1144,7 @@
         @param framenr framenumber of the variables to retrieve (int)
         """
         self.debuggerInterface.remoteClientVariable(
-            scope, filterList, var, framenr)
+            scope, filterList, var, framenr, self.__maxVariableSize)
         
     def remoteClientSetFilter(self, scope, filterStr):
         """

eric ide

mercurial