Table of Contents

Class: DebugUI ./Debugger/DebugUI.py

Class implementing the debugger part of the UI.

Base Classes   
QObject
Methods   
__init__
enterRemote
getAllBreakpoints
getClientVariables
getFileBreakpoints
getProjectBreakpoints
handleAllBp
handleAllFileBp
handleClientGone
handleClientVariables
handleConfigFilters
handleContinue
handleEditorOpened
handleEval
handleException
handleExceptionsFilter
handleExec
handleExit
handleLastEditorClosed
handleLineChange
handlePassiveDebugStarted
handleProjectBp
handleProjectClosed
handleProjectOpened
handleProjectSessionLoaded
handleRestart
handleRun
handleRunProject
handleRunScript
handleStep
handleStepOut
handleStepOver
handleStepQuit
handleSyntaxError
handleToggleBreakpoint
handleToggleCBreakpoint
initActions
initMenu
initToolbar
resetUI
setArgvHistory
setExcList
setExceptionReporting
setWdHistory
shutdownServer
  __init__ 
__init__ (
        self,
        ui,
        vm,
        dbs,
        sbv,
        )

Constructor

Arguments

ui
reference to the main UI
vm
reference to the viewmanager
dbs
reference to the debug server
sbv
reference to the shell/browser/variables/exception widget

Signals

clientStack
emitted at breaking after a reported exception
  enterRemote 
enterRemote ( self )

Private method to update the user interface.

This method is called just prior to executing some of the program being debugged.

  getAllBreakpoints 
getAllBreakpoints ( self )

Public method to get all breakpoints

Returns

list of all breakpoints

  getClientVariables 
getClientVariables ( self )

Private method to request the global and local variables.

In the first step, the global variables are requested from the client. Once these have been received, the local variables are requested. This happens in the method handleClientVariables.

  getFileBreakpoints 
getFileBreakpoints ( self,  fn )

Public method to get all file breakpoints.

Arguments

fn
filename (string)

Returns

list of file breakpoints

  getProjectBreakpoints 
getProjectBreakpoints ( self )

Public method to get all breakpoints of the current project

Returns

list of breakpoints belonging to the current project

  handleAllBp 
handleAllBp ( self )

Private slot for displaying all breakpoints.

  handleAllFileBp 
handleAllFileBp ( self )

Private slot for displaying the breakpoints of the current file.

  handleClientGone 
handleClientGone ( self,  unplanned )

Private method to handle the disconnection of the debugger client.

Arguments

unplanned
1 if the client died, 0 otherwise
  handleClientVariables 
handleClientVariables ( self,  vars )

Private method to write the clients variables to the user interface.

Arguments

vars
the list of variables from the client
  handleConfigFilters 
handleConfigFilters ( self )

Private slot for displaying the variables filter configuration dialog.

  handleContinue 
handleContinue ( self )

Private method to handle the Continue action.

  handleEditorOpened 
handleEditorOpened ( self )

Private slot to handle the editorOpened signal.

  handleEval 
handleEval ( self )

Private method to handle the Eval action.

  handleException 
handleException ( self,  status )

Private method to handle an exception of the debugged program.

Arguments

status
exception information
  handleExceptionsFilter 
handleExceptionsFilter ( self )

Private slot for displaying the exception filter dialog.

  handleExec 
handleExec ( self )

Private method to handle the Exec action.

  handleExit 
handleExit ( self,  status )

Private method to handle the debugged program terminating.

Arguments

status
exit code of the debugged program (int)
  handleLastEditorClosed 
handleLastEditorClosed ( self )

Private slot to handle the closeProgram signal.

  handleLineChange 
handleLineChange (
        self,
        fn,
        line,
        )

Private method to handle a change to the current line.

Arguments

fn
filename (string)
line
linenumber (int)
  handlePassiveDebugStarted 
handlePassiveDebugStarted ( self )

Private slot to handle a passive debug session start.

  handleProjectBp 
handleProjectBp ( self )

Private slot to display all breakpoints of the current project

  handleProjectClosed 
handleProjectClosed ( self )

Private slot to handle the projectClosed signal.

  handleProjectOpened 
handleProjectOpened ( self )

Private slot to handle the projectOpened signal.

  handleProjectSessionLoaded 
handleProjectSessionLoaded ( self )

Private slot to handle the projectSessionLoaded signal.

  handleRestart 
handleRestart ( self )

Private slot to handle the restart action to restart the last debugged file.

  handleRun 
handleRun ( self,  runProject )

Private method to handle the Run action.

Arguments

runProject
flag indicating debugging the current project (1) or script (0)
  handleRunProject 
handleRunProject ( self )

Private slot to handle the run script action.

  handleRunScript 
handleRunScript ( self )

Private slot to handle the run script action.

  handleStep 
handleStep ( self )

Private method to handle the Step action.

  handleStepOut 
handleStepOut ( self )

Private method to handle the Step Out action.

  handleStepOver 
handleStepOver ( self )

Private method to handle the Step Over action.

  handleStepQuit 
handleStepQuit ( self )

Private method to handle the Step Quit action.

  handleSyntaxError 
handleSyntaxError ( self,  status )

Private method to handle a syntax error in the debugged program.

Arguments

status
information about the syntax error
  handleToggleBreakpoint 
handleToggleBreakpoint ( self )

Private slot to handle the Set/Reset breakpoint action.

  handleToggleCBreakpoint 
handleToggleCBreakpoint ( self )

Private slot to handle the SetChange conditional breakpoint action.

  initActions 
initActions ( self )

Method defining the user interface actions.

  initMenu 
initMenu ( self )

Public slot to initialize the project menu.

Returns

the generated menu

  initToolbar 
initToolbar ( self )

Public slot to initialize the project toolbar.

Returns

the generated toolbar

  resetUI 
resetUI ( self )

Private slot to reset the user interface.

  setArgvHistory 
setArgvHistory ( self,  argsStr )

Public slot to initialize the argv History used for debugging.

Arguments

argsStr
the commandline argumnets (string or QString)
  setExcList 
setExcList ( self,  excList )

Public slot to initialize the exceptions type list.

Arguments

excList
list of exception types (list of strings)
  setExceptionReporting 
setExceptionReporting ( self,  exceptions )

Public slot to initialize the exception reporting flag.

Arguments

exceptions
flag indicating exception reporting status (boolean)
  setWdHistory 
setWdHistory ( self,  wdStr )

Public slot to initialize the wd History used for debugging.

Arguments

wdStr
the working directory (string or QString)
  shutdownServer 
shutdownServer ( self )

Public method to shutdown the debug server.

This is needed to cleanly close the sockets on Win OS.

Returns

always true


Table of Contents

This document was automatically generated on Fri Mar 14 19:54:45 2003 by HappyDoc version 2.1