1403 @param variables the list of variables from the client |
1403 @param variables the list of variables from the client |
1404 @type list |
1404 @type list |
1405 @param debuggerId ID of the debugger backend |
1405 @param debuggerId ID of the debugger backend |
1406 @type str |
1406 @type str |
1407 """ |
1407 """ |
1408 if debuggerId == self.getSelectedDebuggerId(): |
1408 if debuggerId == self.getSelectedDebuggerId() and scope > -2: |
1409 if scope > -2: |
1409 self.ui.activateDebugViewer() |
1410 self.ui.activateDebugViewer() |
1410 if scope > 0: |
1411 if scope > 0: |
1411 self.debugViewer.showVariables(variables, True) |
1412 self.debugViewer.showVariables(variables, True) |
1412 if scope == 1: |
1413 if scope == 1: |
1413 # now get the local variables |
1414 # now get the local variables |
1414 self.debugServer.remoteClientVariables( |
1415 self.debugServer.remoteClientVariables( |
1415 self.getSelectedDebuggerId(), |
1416 self.getSelectedDebuggerId(), |
1416 0, self.__localsVarFilterList) |
1417 0, self.__localsVarFilterList) |
1417 elif scope == 0: |
1418 elif scope == 0: |
1418 self.debugViewer.showVariables(variables, False) |
1419 self.debugViewer.showVariables(variables, False) |
1419 elif scope == -1: |
1420 elif scope == -1: |
1420 vlist = [(self.tr('No locals available.'), '', '')] |
1421 vlist = [(self.tr('No locals available.'), '', '')] |
1421 self.debugViewer.showVariables(vlist, False) |
1422 self.debugViewer.showVariables(vlist, False) |
|
1423 |
1422 |
1424 def __clientVariable(self, scope, variables, debuggerId): |
1423 def __clientVariable(self, scope, variables, debuggerId): |
1425 """ |
1424 """ |
1426 Private method to write the contents of a clients classvariable to |
1425 Private method to write the contents of a clients classvariable to |
1427 the user interface. |
1426 the user interface. |