eric6/Debugger/DebugUI.py

branch
maintenance
changeset 8400
b3eefd7e58d1
parent 8273
698ae46f40a4
parent 8380
73ef1edca602
equal deleted inserted replaced
8274:197414ba11cc 8400:b3eefd7e58d1
1370 Private method to handle a change of the client's current thread. 1370 Private method to handle a change of the client's current thread.
1371 1371
1372 @param debuggerId ID of the debugger backend 1372 @param debuggerId ID of the debugger backend
1373 @type str 1373 @type str
1374 """ 1374 """
1375 self.debugServer.remoteClientVariables( 1375 if self.debugServer.isDebugging():
1376 debuggerId, 0, self.__localsVarFilterList) 1376 self.debugServer.remoteClientVariables(
1377 debuggerId, 0, self.__localsVarFilterList)
1377 1378
1378 def __getClientVariables(self, debuggerId): 1379 def __getClientVariables(self, debuggerId):
1379 """ 1380 """
1380 Private method to request the global and local variables. 1381 Private method to request the global and local variables.
1381 1382
1393 1394
1394 def __clientVariables(self, scope, variables, debuggerId): 1395 def __clientVariables(self, scope, variables, debuggerId):
1395 """ 1396 """
1396 Private method to write the clients variables to the user interface. 1397 Private method to write the clients variables to the user interface.
1397 1398
1398 @param scope scope of the variables (-1 = empty locals, 1 = global, 1399 @param scope scope of the variables
1399 0 = local) 1400 (-2 = no frame found, -1 = empty locals, 1 = global, 0 = local)
1400 @type int 1401 @type int
1401 @param variables the list of variables from the client 1402 @param variables the list of variables from the client
1402 @type list 1403 @type list
1403 @param debuggerId ID of the debugger backend 1404 @param debuggerId ID of the debugger backend
1404 @type str 1405 @type str
1405 """ 1406 """
1406 if debuggerId == self.getSelectedDebuggerId(): 1407 if debuggerId == self.getSelectedDebuggerId() and scope > -2:
1407 self.ui.activateDebugViewer() 1408 self.ui.activateDebugViewer()
1408 if scope > 0: 1409 if scope > 0:
1409 self.debugViewer.showVariables(variables, True) 1410 self.debugViewer.showVariables(variables, True)
1410 if scope == 1: 1411 if scope == 1:
1411 # now get the local variables 1412 # now get the local variables

eric ide

mercurial