1371 Private method to handle a change of the client's current thread. |
1371 Private method to handle a change of the client's current thread. |
1372 |
1372 |
1373 @param debuggerId ID of the debugger backend |
1373 @param debuggerId ID of the debugger backend |
1374 @type str |
1374 @type str |
1375 """ |
1375 """ |
1376 self.debugServer.remoteClientVariables( |
1376 if self.debugServer.isDebugging(): |
1377 debuggerId, 0, self.__localsVarFilterList) |
1377 self.debugServer.remoteClientVariables( |
|
1378 debuggerId, 0, self.__localsVarFilterList) |
1378 |
1379 |
1379 def __getClientVariables(self, debuggerId): |
1380 def __getClientVariables(self, debuggerId): |
1380 """ |
1381 """ |
1381 Private method to request the global and local variables. |
1382 Private method to request the global and local variables. |
1382 |
1383 |
1394 |
1395 |
1395 def __clientVariables(self, scope, variables, debuggerId): |
1396 def __clientVariables(self, scope, variables, debuggerId): |
1396 """ |
1397 """ |
1397 Private method to write the clients variables to the user interface. |
1398 Private method to write the clients variables to the user interface. |
1398 |
1399 |
1399 @param scope scope of the variables (-1 = empty locals, 1 = global, |
1400 @param scope scope of the variables |
1400 0 = local) |
1401 (-2 = no frame found, -1 = empty locals, 1 = global, 0 = local) |
1401 @type int |
1402 @type int |
1402 @param variables the list of variables from the client |
1403 @param variables the list of variables from the client |
1403 @type list |
1404 @type list |
1404 @param debuggerId ID of the debugger backend |
1405 @param debuggerId ID of the debugger backend |
1405 @type str |
1406 @type str |
1406 """ |
1407 """ |
1407 if debuggerId == self.getSelectedDebuggerId(): |
1408 if debuggerId == self.getSelectedDebuggerId(): |
1408 self.ui.activateDebugViewer() |
1409 if scope > -2: |
1409 if scope > 0: |
1410 self.ui.activateDebugViewer() |
1410 self.debugViewer.showVariables(variables, True) |
1411 if scope > 0: |
1411 if scope == 1: |
1412 self.debugViewer.showVariables(variables, True) |
1412 # now get the local variables |
1413 if scope == 1: |
1413 self.debugServer.remoteClientVariables( |
1414 # now get the local variables |
1414 self.getSelectedDebuggerId(), |
1415 self.debugServer.remoteClientVariables( |
1415 0, self.__localsVarFilterList) |
1416 self.getSelectedDebuggerId(), |
1416 elif scope == 0: |
1417 0, self.__localsVarFilterList) |
1417 self.debugViewer.showVariables(variables, False) |
1418 elif scope == 0: |
1418 elif scope == -1: |
1419 self.debugViewer.showVariables(variables, False) |
1419 vlist = [(self.tr('No locals available.'), '', '')] |
1420 elif scope == -1: |
1420 self.debugViewer.showVariables(vlist, False) |
1421 vlist = [(self.tr('No locals available.'), '', '')] |
|
1422 self.debugViewer.showVariables(vlist, False) |
1421 |
1423 |
1422 def __clientVariable(self, scope, variables, debuggerId): |
1424 def __clientVariable(self, scope, variables, debuggerId): |
1423 """ |
1425 """ |
1424 Private method to write the contents of a clients classvariable to |
1426 Private method to write the contents of a clients classvariable to |
1425 the user interface. |
1427 the user interface. |