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