Debugger/DebugViewer.py

changeset 5587
ea526b78ee6c
parent 5389
9b1c800daff3
child 6048
82ad8ec9548c
equal deleted inserted replaced
5586:0e5421d679e7 5587:ea526b78ee6c
360 360
361 @param enabled flag indicating to enable the project mode (boolean) 361 @param enabled flag indicating to enable the project mode (boolean)
362 """ 362 """
363 self.callTraceViewer.setProjectMode(enabled) 363 self.callTraceViewer.setProjectMode(enabled)
364 364
365 def showVariables(self, vlist, globals): 365 def showVariables(self, vlist, showGlobals):
366 """ 366 """
367 Public method to show the variables in the respective window. 367 Public method to show the variables in the respective window.
368 368
369 @param vlist list of variables to display 369 @param vlist list of variables to display
370 @param globals flag indicating global/local state 370 @param showGlobals flag indicating global/local state
371 """ 371 """
372 if globals: 372 if showGlobals:
373 self.globalsViewer.showVariables(vlist, self.framenr) 373 self.globalsViewer.showVariables(vlist, self.framenr)
374 else: 374 else:
375 self.localsViewer.showVariables(vlist, self.framenr) 375 self.localsViewer.showVariables(vlist, self.framenr)
376 376
377 def showVariable(self, vlist, globals): 377 def showVariable(self, vlist, showGlobals):
378 """ 378 """
379 Public method to show the variables in the respective window. 379 Public method to show the variables in the respective window.
380 380
381 @param vlist list of variables to display 381 @param vlist list of variables to display
382 @param globals flag indicating global/local state 382 @param showGlobals flag indicating global/local state
383 """ 383 """
384 if globals: 384 if showGlobals:
385 self.globalsViewer.showVariable(vlist) 385 self.globalsViewer.showVariable(vlist)
386 else: 386 else:
387 self.localsViewer.showVariable(vlist) 387 self.localsViewer.showVariable(vlist)
388 388
389 def showVariablesTab(self, globals): 389 def showVariablesTab(self, showGlobals):
390 """ 390 """
391 Public method to make a variables tab visible. 391 Public method to make a variables tab visible.
392 392
393 @param globals flag indicating global/local state 393 @param showGlobals flag indicating global/local state
394 """ 394 """
395 if globals: 395 if showGlobals:
396 self.__tabWidget.setCurrentWidget(self.glvWidget) 396 self.__tabWidget.setCurrentWidget(self.glvWidget)
397 else: 397 else:
398 self.__tabWidget.setCurrentWidget(self.lvWidget) 398 self.__tabWidget.setCurrentWidget(self.lvWidget)
399 399
400 def saveCurrentPage(self): 400 def saveCurrentPage(self):
463 463
464 def setGlobalsFilter(self): 464 def setGlobalsFilter(self):
465 """ 465 """
466 Public slot to set the global variable filter. 466 Public slot to set the global variable filter.
467 """ 467 """
468 filter = self.globalsFilterEdit.text() 468 filterStr = self.globalsFilterEdit.text()
469 self.debugServer.remoteClientSetFilter(1, filter) 469 self.debugServer.remoteClientSetFilter(1, filterStr)
470 self.debugServer.remoteClientVariables(2, self.globalsFilter) 470 self.debugServer.remoteClientVariables(2, self.globalsFilter)
471 471
472 def setLocalsFilter(self): 472 def setLocalsFilter(self):
473 """ 473 """
474 Public slot to set the local variable filter. 474 Public slot to set the local variable filter.
475 """ 475 """
476 filter = self.localsFilterEdit.text() 476 filterStr = self.localsFilterEdit.text()
477 self.debugServer.remoteClientSetFilter(0, filter) 477 self.debugServer.remoteClientSetFilter(0, filterStr)
478 if self.currentStack: 478 if self.currentStack:
479 self.debugServer.remoteClientVariables( 479 self.debugServer.remoteClientVariables(
480 0, self.localsFilter, self.framenr) 480 0, self.localsFilter, self.framenr)
481 481
482 def handleDebuggingStarted(self): 482 def handleDebuggingStarted(self):

eric ide

mercurial