eric6/Debugger/DebugUI.py

branch
maintenance
changeset 8400
b3eefd7e58d1
parent 8273
698ae46f40a4
parent 8380
73ef1edca602
--- a/eric6/Debugger/DebugUI.py	Sat May 01 14:27:38 2021 +0200
+++ b/eric6/Debugger/DebugUI.py	Thu Jun 03 11:39:23 2021 +0200
@@ -1372,8 +1372,9 @@
         @param debuggerId ID of the debugger backend
         @type str
         """
-        self.debugServer.remoteClientVariables(
-            debuggerId, 0, self.__localsVarFilterList)
+        if self.debugServer.isDebugging():
+            self.debugServer.remoteClientVariables(
+                debuggerId, 0, self.__localsVarFilterList)
     
     def __getClientVariables(self, debuggerId):
         """
@@ -1395,15 +1396,15 @@
         """
         Private method to write the clients variables to the user interface.
         
-        @param scope scope of the variables (-1 = empty locals, 1 = global,
-            0 = local)
+        @param scope scope of the variables
+            (-2 = no frame found, -1 = empty locals, 1 = global, 0 = local)
         @type int
         @param variables the list of variables from the client
         @type list
         @param debuggerId ID of the debugger backend
         @type str
         """
-        if debuggerId == self.getSelectedDebuggerId():
+        if debuggerId == self.getSelectedDebuggerId() and scope > -2:
             self.ui.activateDebugViewer()
             if scope > 0:
                 self.debugViewer.showVariables(variables, True)

eric ide

mercurial