Table of Contents

Eric3 Source Documentation: Debugger  
-
$?csdZ
dkZdkTdkTdkTdkTdkTdkTdkTdk	Z	dk
Z
defdYZdS(s&
Module implementing the debugger UI.
N(s*sDebugUIcstZdZdZddZdZdZdZdZdZ	dZ
d	Zd
ZdZ
$dZ4d
Z>dZKdZadZpdZdZdZdZdZdZdZ
dZdZdZ&dZ2dZ8dZ?dZ EdZ!Kd Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(7d'Z)=d(Z*Cd)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3	d2Z4#d3Z50d4Z6>d5Z7Hd6Z8Rd7Z9RS(8s9
    Class implementing the debugger part of the UI.
    csH,-ti||/||_0||_1||_2||_5d|_6d|_	7g|_
:t|idd|_<t
|_=t
|_>d|_?t
|_@t
|_At|_Bd|_Cd|_D|i|i|i|i|ig|_Gti\|_|_ H|ii!|iK|i"|t#d|i$L|i"|t#d|i%M|i"|t#d|i&N|i"|t#d|i'O|i"|t#d	|i(P|i"|t#d
|i)Q|i"|t#d|i*S|i"|t#d|i+T|i"|t#d
|i,W|i"|t#d|i-X|i"|t#d|i.[|i/}\|i"|t#d|i1]|i"|t#d|i1^|i"|t#d|i2_|i"|t#d|i3bti4d|_5dS(s
        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
        is
Filter Dialogiis
clientGones
clientLines
clientExitsclientSyntaxErrorsclientExceptionsclientVariablesspassiveDebugStartedsclientRawInputsclientRawInputSentseditorOpenedslastEditorCloseds
projectOpeneds
newProjects
projectClosedsprojectSessionLoadedsPassiveDbgEnabledN(6sQObjects__init__sselfsuisvmsviewmanagersdbsssbvsprojectOpens
editorOpensexcListsVariablesFilterDialogsdbgFilterDialogsQStringListsargvHistorys	wdHistorys
exceptionssevalHistorysexecHistorysNoneslastDebuggedFileslastStartActions
lastActionshandleContinues
handleStepshandleStepOvers
handleStepOutshandleStepQuitsactionssPreferencess
getVarFiltersslocalsVarFiltersglobalsVarFilterssetLocalVariablesFiltersconnectsPYSIGNALshandleClientGoneshandleLineChanges
handleExitshandleSyntaxErrorshandleExceptionshandleClientVariablesshandlePassiveDebugStartedshandleRawInputsrestoreCurrentPageshandleEditorOpenedshandleLastEditorCloseds
getProjectsprojectshandleProjectOpenedshandleProjectClosedshandleProjectSessionLoadedsgetDebuggerspassive(sselfsuisvmsdbsssbvsproject((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys__init__sL*csTdght|idittj|idti||_k|ii|idl|ii	|idq|i
|itd|ist|idttt
u|idtiti||_v|ii|idw|ii	|id	~|i
|itd|it|id
tt|idd||_|ii|id
|ii	|id|i
|itd|it|idtt|idd||_|ii|id|ii	|id|i
|itd|it|idtt|idd||_|ii|id|ii	|id|i
|itd|it|idtt|idd||_|ii|id|ii	|id|i
|itd|it|idtt|idti||_|ii|id|ii	|id|i
|itd|i t|idtt!|id titi||_"|i"i|id!|i"i	|id"|i
|i"td|i#t|id#tt$|id$ti%||_&|i&i|id%|i&i	|id&|i
|i&td|i't(||_)t|id'tt*|id(ti+|i)}|i|id)|i	|id*|i
|td|i-t|id+tt.|id,ti/|i)}|i|id-|i	|id.|i
|td|i0t|id/tt1|id0ti2|i)}|i|id1|i	|id2|i
|td|i3t|id3tt4|id4ti5|i)}|i|id5|i	|id6|i
|td|i6
t|id7tt7|id8ti8|i)}|i|id9|i	|id:|i
|td|i9t(||_:t|id;|id<d|i:}|i|id=|i	|id>$|i
|td|i;&t|id?'|id@(d|i:})|i|idA*|i	|idB/|i
|td|i<1t|idC2|idDd||_=3|i=i|idE4|i=i	|idF:|i
|i=td|i><t|idG=|idHd||_?>|i?i|idI?|i?i	|idJF|i
|i?td|i@Ht(||_AJt|idKK|idKtiBL|iA}M|i|idKN|i	|idLS|i
|td|iCUt|idMV|idMtiDW|iA}X|i|idMY|i	|idN^|i
|td|iE`t(||_Fbt|idOc|idPd|iF}d|i|idQe|i	|idRj|i
|td|iGlt|idSm|idTd|iF}n|i|idUo|i	|idVt|i
|td|iHvt|idWw|idXd||_Ix|iIi|idYy|iIi	|idZ~|i
|iItd|iJ|i)iKd|i:iKd|iAiKd|iFiKd|iIiKd|iiKd|iiKd|iiKd|iiKd|iiKd|iiKd|iiKd|i"iKd|i&iKdd[S(\s=
        Method defining the user interface actions.
        s
Run Scripts&Run Script...sRun the current Scripts<b>Run Script</b><p>Set the command line arguments and run the script outside the debugger. If the file has unsaved changes it may be saved first.</p>sactivated()sRun ProjectsRun &Project...sRun the current Projects<b>Run Project</b><p>Set the command line arguments and run the current project outside the debugger. If files of the current project have unsaved changes they may be saved first.</p>sCoverage run of ScriptsCoverage run of Script...is,Perform a coverage run of the current Scripts<b>Coverage run of Script</b><p>Set the command line arguments and run the script under the control of a coverage analysis tool. If the file has unsaved changes it may be saved first.</p>sCoverage run of ProjectsCoverage run of Project...s-Perform a coverage run of the current Projects<b>Coverage run of Project</b><p>Set the command line arguments and run the current project under the control of a coverage analysis tool. If files of the current project have unsaved changes they may be saved first.</p>sProfile ScriptsProfile Script...sProfile the current Scripts<b>Profile Script</b><p>Set the command line arguments and profile the script. If the file has unsaved changes it may be saved first.</p>sProfile ProjectsProfile Project...sProfile the current Projects<b>Profile Project</b><p>Set the command line arguments and profile the current project. If files of the current project have unsaved changes they may be saved first.</p>sDebug Scripts&Debug Script...sDebug the current Scripts<b>Debug Script</b><p>Set the command line arguments and set the current line to be the first executable Python statement of the current editor window. If the file has unsaved changes it may be saved first.</p>s
Debug ProjectsDebug &Project...sDebug the current Projects<b>Debug Project</b><p>Set the command line arguments and set the current line to be the first executable Python statement of the main script of the current project. If files of the current project have unsaved changes they may be saved first.</p>sRestart ScriptsRestart Script...s Restart the last debugged scripts<b>Restart Script</b><p>Set the command line arguments and set the current line to be the first executable Python statement of the script that was debugged last. If there are unsaved changes, they may be saved first.</p>sContinues	&Continues2Continue running the program from the current lines<b>Continue</b><p>Continue running the program from the current line. The program will stop when it terminates or when a breakpoint is reached.</p>sSingle StepsSin&gle Steps!Execute a single Python statements<b>Single Step</b><p>Execute a single Python statement. If the statement is an <tt>import</tt> statement, a class constructor, or a method or function call then control is returned to the debugger at the next statement.</p>s	Step Overs
Step &Overs>Execute a single Python statement staying in the current frames<b>Step Over</b><p>Execute a single Python statement staying in the same frame. If the statement is an <tt>import</tt> statement, a class constructor, or a method or function call then control is returned to the debugger after the statement has completed.</p>sStep Outs	Step Ou&ts9Execute Python statements until leaving the current frames
<b>Step Out</b><p>Execute Python statements until leaving the current frame. If the statements are inside an <tt>import</tt> statement, a class constructor, or a method or function call then control is returned to the debugger after the current frame has been left.</p>sStops&StopsStop debuggings5<b>Stop</b><p>Stop the running debugging session.</p>sEvaluatesE&valuate...sEvaluate in current contexts<b>Evaluate</b><p>Evaluate an expresion in the current context of the debugged program. The result is displayed in the shell window.</p>sExecutesE&xecute...s3Execute a one line statement in the current contextsa<b>Execute</b><p>Execute a one line statement in the current context of the debugged program.</p>sVariables FiltersVaria&bles Filter...sConfigure variables filters<b>Variables Filter</b><p>Configure the variables filter. Only variable types that are not selected are displayed in the global or local variables window during a debugging session.</p>sExceptions Filters&Exceptions Filter...sConfigure exceptions filters<b>Exceptions Filter</b><p>Configure the exceptions filter. Only exception types that are listed are highlighted during a debugging session.</p><p>Please note, that all unhandled exceptions are highlighted indepent from the filter list.</p>sSet/Reset Breakpointsh<b>Set/Reset Breakpoint</b><p>Sets or resets a breakpoint at the current line of the current editor.</p>s!Set/Change Conditional Breakpoints<b>Set/Change Conditional Breakpoint</b><p>Sets a conditional breakpoint or changes the breakpoints condition. It works at the current line of the current editor.</p>sFile Breakpointss&File Breakpoints...s$Show breakpoints of the current files<b>File Breakpoints</b><p>Show all breakpoints of the current file. The dialog allows to delete or change these breakpoints.</p>sAll Breakpointss&All Breakpoints...sShow all breakpointssk<b>All Breakpoints</b><p>Show all breakpoints. The dialog allows to delete or change these breakpoints.</p>sProject BreakpointssPro&ject Breakpoints...sShow the projects breakpointss<b>Project Breakpoints</b><p>Show all breakpoints of the current project. The dialog allows to delete or change these breakpoints.</p>N(LsQActionsselfstrUtf8sQIconSets
IconRunScriptsQtsKey_F2srunActssetStatusTipssetWhatsThissconnectsSIGNALshandleRunScriptsIconRunProjectsSHIFTs
runProjectActshandleRunProjectsIconCoverageScriptscoverageActshandleCoverageScriptsIconCoverageProjectscoverageProjectActshandleCoverageProjectsIconProfileScripts
profileActshandleProfileScriptsIconProfileProjectsprofileProjectActshandleProfileProjectsIconDebugScriptsKey_F5sdebugActshandleDebugScriptsIconDebugProjectsdebugProjectActshandleDebugProjectsIconRestartsKey_F4s
restartActs
handleRestartsQActionGroupsdebugActGrpsIconContinuesKey_F6sactshandleContinuesIconStepsKey_F7s
handleStepsIconStepOversKey_F8shandleStepOversIconStepOutsKey_F9s
handleStepOutsIconStepQuitsKey_F10shandleStepQuitsdebugActGrp2s
handleEvals
handleExecsdbgFilterActshandleConfigFilterssexcFilterActshandleExceptionsFiltersdbgSetBpActGrpsKey_F11shandleToggleBreakpointsKey_F12shandleToggleCBreakpointsdbgAllBpActGrpshandleAllFileBpshandleAllBpsdbgProjectBpActshandleProjectBps
setEnabled(sselfsact((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysinitActionsds:!"("""""!"("!""""cst|i}|i|ii||i|ii||i	i||i|i
i||ii||i|ii||i
i||i|ii||ii||ii||i|ii||i|ii||i|ii||ii||i|ii||ii||SdS(s~
        Public slot to initialize the project menu.
        
        Returns
        
            the generated menu
        N(s
QPopupMenusselfsparentsmenusinsertTearOffHandles
restartActsaddTosinsertSeparatorsrunActs
runProjectActs
profileActsprofileProjectActscoverageActscoverageProjectActsdebugActsdebugProjectActsdebugActGrpsdebugActGrp2sdbgSetBpActGrpsdbgProjectBpActsdbgAllBpActGrpsdbgFilterActsexcFilterAct(sselfsmenu((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysinitMenus8








cst|i}|ii||i|ii||ii||i|i	i||i
i||i|ii||ii||i|i
i||ii||ii||SdS(s
        Public slot to initialize the project toolbar.
        
        Returns
        
            the generated toolbar
        N(sQToolBarsselfsparentstbs
restartActsaddTosaddSeparatorsrunActs
runProjectActs
profileActsprofileProjectActscoverageActscoverageProjectActsdebugActsdebugProjectActsdebugActGrp(sselfstb((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysinitToolbars"



cs0|ii||ii|dS(s
        Public slot to initialize the argv History used for debugging.
        
        Arguments
        
            argsStr -- the commandline argumnets (string or QString)
        N(sselfsargvHistorysremovesargsStrsprepend(sselfsargsStr((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyssetArgvHistoryscs0|ii||ii|dS(s
        Public slot to initialize the wd History used for debugging.
        
        Arguments
        
            wdStr -- the working directory (string or QString)
        N(sselfs	wdHistorysremoveswdStrsprepend(sselfswdStr((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyssetWdHistoryscs||_dS(s
        Public slot to initialize the exception reporting flag.
        
        Arguments
        
            exceptions -- flag indicating exception reporting status (boolean)
        N(s
exceptionssself(sselfs
exceptions((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyssetExceptionReportingscs||_dS(s
        Public slot to initialize the exceptions type list.
        
        Arguments
        
            excList -- list of exception types (list of strings)
        N(sexcListsself(sselfsexcList((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
setExcListscs|ioP|iid|iid|iid|iidn|iid|iidd|_	dS(sA
        Private slot to handle the editorOpened signal.
        iN(
sselfspassivesdebugActs
setEnabledsrunActs
profileActscoverageActsdbgAllBpActGrpsdbgSetBpActGrps
editorOpen(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleEditorOpenedscs	d|_
|iid|iid|iid
|iid|iid|iid|i	id|i
idd|_|io/|i
idt|_d|_ndS(sA
        Private slot to handle the closeProgram signal.
        iiN(sselfs
editorOpensdebugActs
setEnabledsrunActs
profileActscoverageActsdebugActGrpsdebugActGrp2sdbgAllBpActGrpsdbgSetBpActGrps
lastActionsprojectOpens
restartActsNoneslastDebuggedFileslastStartAction(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleLastEditorClosedscsd|_|ioP|iid|iid |iid!|iidn"|iiddS(sB
        Private slot to handle the projectOpened signal.
        iN(	sselfsprojectOpenspassivesdebugProjectActs
setEnableds
runProjectActsprofileProjectActscoverageProjectActsdbgProjectBpAct(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleProjectOpenedscs$'(d|_)|iid*|iid+|iid,|iid-|iid/|io/0|i	id1t
|_2d|_ndS(sB
        Private slot to handle the projectClosed signal.
        iN(
sselfsprojectOpens
runProjectActs
setEnabledsprofileProjectActscoverageProjectActsdebugProjectActsdbgProjectBpActs
editorOpens
restartActsNoneslastDebuggedFileslastStartAction(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleProjectClosed$scsd478|iiid}9|tj	o/:d|_;||_<|ii	dndS(sI
        Private slot to handle the projectSessionLoaded signal.
        iiN(
sselfsuis
getProjects
getMainScriptsfnsNoneslastStartActionslastDebuggedFiles
restartActs
setEnabled(sselfsfn((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleProjectSessionLoaded4scs!>GH|iiIdSdS(s
        Public method to shutdown the debug server.
        
        This is needed to cleanly close the sockets on Win OS.
        
        Returns
        
            always true
        iN(sselfsdbssshutdownServer(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysshutdownServer>s	cs\KNO|iidP|iidQ|ioR|ii|iS|ii|iT|ii|iU|i	i|iV|i
i|iW|ii|iX|i
i|iY|ii|iZ|itj	o|ip|io\|iidn^|iidn_|itdfdS(s;
        Private slot to reset the user interface.
        iisresetUIN(sselfsdebugActGrps
setEnabledsdebugActGrp2spassivesdebugActs
editorOpensrunActs
profileActscoverageActsdebugProjectActsprojectOpens
runProjectActsprofileProjectActscoverageProjectActslastDebuggedFilesNones
restartActsemitsPYSIGNAL(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysresetUIKs 'csMajk|iil|iim|ii||n|idS(s
        Private method to handle a change to the current line.
        
        Arguments
        
            fn -- filename (string)
            
            line -- linenumber (int)
        N(	sselfsuissetActiveWindowsraiseWsviewmanagerssetFileLinesfnslinesgetClientVariables(sselfsfnsline((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleLineChangeas
	csmpwx|iiz|i|ti|it}|idi	t
i|iii	|dS(s
        Private method to handle the debugged program terminating.
        
        Arguments
        
            status -- exit code of the debugged program (int)
        s3<b>%1</b> has terminated with an exit status of %2.N(sselfsviewmanagers
handleExitsresetUIsQMessageBoxsinformationsuisProgramstrUtf8sargs	UtilitiessnormabspathscurrentProgsstatus(sselfsstatus((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleExitps

cs|i|ii|iiy?t|\}\}}}|tjo
d}nWn6ti
|it|iddSnX|ii||dti
|it|idi|i|i|dS(s
        Private method to handle a syntax error in the debugged program.
        
        Arguments
        
            status -- information about the syntax error
        ss@The program being debugged contains an unspecified syntax error.NisIThe file <b>%1</b> contains the syntax error <b>%2</b> at line <b>%3</b>.(sselfsresetUIsuissetActiveWindowsraiseWsevalsstatussmessagesfnslnscnsNonesQMessageBoxscriticalsProgramstrUtf8sviewmanagerssetFileLinesarg(sselfsstatusscnslnsmessagesfn((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleSyntaxErrors
c	s1|ii|iitiyt|}Wn6t	i
|it|iddSnX|d \}}\}}|io4t|ip#t|iot||ijp
|ido|ii||dt	i
|it|idit|i|i|i||id|id}|djowg}x4|d	D]%\}}|i||d
fqW|itd|f|idSnn|idjo|i |indS(
s
        Private method to handle an exception of the debugged program.
        
        Arguments
        
            status -- exception information
        sAAn unhandled exception occured. See the shell window for details.Nis	unhandledisfThe debugged program raised the exception <b>%1</b><br>"<b>%2</b>"<br>File: <b>%3</b>, Line: <b>%4</b>sContinuesBreakissclientStacki(!sselfsuissetActiveWindowsraiseWsqApps
processEventssevalsstatussexclistsQMessageBoxscriticalsProgramstrUtf8sexctypesmsgsfnslns
exceptionsslensexcListsstrs
startswithsviewmanagerssetFileLinesargsressstacksappendsemitsPYSIGNALsgetClientVariabless
lastActionsactions(	sselfsstatusslnsressexclistsexctypesmsgsstacksfn((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleExceptions4
T9!	
csJ|o6|iti|it|idndS(s
        Private method to handle the disconnection of the debugger client.
        
        Arguments
        
            unplanned -- 1 if the client died, 0 otherwise
        s7The program being debugged has terminated unexpectedly.N(s	unplannedsselfsresetUIsQMessageBoxsinformationsuisProgramstrUtf8(sselfs	unplanned((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleClientGones


cs#|iid|idS(s)
        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'.
        iN(sselfsdbssremoteClientVariablessglobalsVarFilter(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysgetClientVariablesscs6t|}|d}y|d}Wng}nX|djo3|ii|d|iid|i	nj|djo|ii|dn@|djo/dddfg}|ii|dn|djo*|i
id|iidndS(s
        Private method to write the clients variables to the user interface.
        
        Arguments
        
            vars -- the list of variables from the client
        iiisNonesN(
sevalsvarssvlistsscopesselfssbvs
showVariablessdbssremoteClientVariablesslocalsVarFiltersdebugActGrps
setEnabledsdebugActGrp2(sselfsvarssscopesvlist((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleClientVariabless$

cs|ii}|tijo"|ii\|_|_n|ii	|i|i|i
i|idS(sX
        Private slot for displaying the variables filter configuration dialog.
        N(sselfsdbgFilterDialogs	exec_loopsresultsQDialogsAcceptedsgetSelectionslocalsVarFiltersglobalsVarFilterssetSelectionssbvssetLocalVariablesFilter(sselfsresult((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleConfigFilterss"csK

t|i}|itijo|i|_ndS(sJ
        Private slot for displaying the exception filter dialog.
        N(sExceptionsFilterDialogsselfsexcListsdlgs	exec_loopsQDialogsAcceptedsgetExceptionsList(sselfsdlg((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleExceptionsFilter
scs]|ii}|i\}}|d7}ti}|i
||dS(sK
        Private slot to handle the 'Set/Reset breakpoint' action.
        iN(sselfsviewmanagersactiveWindowseditorsgetCursorPositionslinesindexsQts
LeftButtonsstateshandleBreakpoint(sselfsindexsstateslineseditor((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleToggleBreakpoints
csd |ii}!|i\}}"|d7}#titi	B}$|i||dS(sW
        Private slot to handle the 'SetChange conditional breakpoint' action.
        iN(sselfsviewmanagersactiveWindowseditorsgetCursorPositionslinesindexsQts
LeftButtonsShiftButtonsstateshandleBreakpoint(sselfsindexsstateslineseditor((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleToggleCBreakpoints
cs&)*|ii}+|tj	o,,t|iddti-|i	n,/t
i|it0|i
dt
idS(sR
        Private slot for displaying the breakpoints of the current file.
        sBPDialogisNo source window activeN(sselfsviewmanagers
getActiveNamesfnsNonesBreakpointDialogsuisQtsWDestructiveCloses	exec_loopsQMessageBoxsinformationsProgramstrUtf8sOk(sselfsfn((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleAllFileBp&scs,256t|iddtiidS(s>
        Private slot for displaying all breakpoints.
        sBPDialogiN(sBreakpointDialogsselfsuisQtsWDestructiveCloses	exec_loop(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleAllBp2scs28;<t|iddti=didS(sP
        Private slot to display all breakpoints of the current project
        sBPDialogisprojectN(sBreakpointDialogsselfsuisQtsWDestructiveCloses	exec_loop(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleProjectBp8scs?BC|iddS(sG
        Private slot to handle the coverage of script action.
        iN(sselfshandleCoverage(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleCoverageScript?scsEHI|iddS(sH
        Private slot to handle the coverage of project action.
        iN(sselfshandleCoverage(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleCoverageProjectEscsKSV|oW|id}nY|id}Zt||i|i[|i|id}\|i
tijo]|i
\}}}^|i}	`|oa|ii}b|id}
c|
tjoKdti|ie|idf|idh|ididSnk|ioldSno|i||||iqd|_n~s|ii}t|tjoudSnw|ii |p|i!tjoydSn{|i!}
|d	|_|
|_"|i#i$d|ii%||ii&||ii%||ii&|||_|ii'|i(i)|
|||	ndS(
s
        Private method to handle the coverage actions.
        
        Arguments
        
            runProject -- flag indicating coverage of the current project (1)
                or script (0)
        sCoverage of ProjectsCoverage of ScriptiisAThere is no main script defined for the current project. Abortings&OKNii(*s
runProjectsselfstrUtf8scapsStartDialogsargvHistorys	wdHistorys
exceptionssuisdlgs	exec_loopsQDialogsAcceptedsgetDatasargvswdsgetCoverageDatas
eraseCoverages
getProjectsprojects
getMainScriptsfnsNonesQMessageBoxscriticalssaveAllScriptss
setDbgInfosexcListslastStartActionsviewmanagersactiveWindowseditors
checkDirtysgetFileNameslastDebuggedFiles
restartActs
setEnabledsremovesprependsunhighlightsdbssremoteCoverage(sselfs
runProjectswdsdlgscapsargvsprojectseditors
exceptionss
eraseCoveragesfn((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleCoverageKsL

*cs|iddS(sC
        Private slot to handle the profile script action.
        iN(sselfs
handleProfile(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleProfileScriptscs|iddS(sD
        Private slot to handle the profile project action.
        iN(sselfs
handleProfile(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleProfileProjectscs|o|id}n|id}t||i|i|i|id}|i
tijo|i
\}}}|i}	|o|ii}|id}
|
tjoKti|i|id|id|iddSn|iodSn|i||||id|_n~|ii}|tjodSn|ii |p|i!tjodSn|i!}
d	|_|
|_"|i#i$d|ii%||ii&||ii%||ii&|||_|ii'|i(i)|
|||	ndS(
s
        Private method to handle the profile actions.
        
        Arguments
        
            runProject -- flag indicating profiling of the current project (1)
                or script (0)
        sProfile of ProjectsProfile of ScriptiisAThere is no main script defined for the current project. Abortings&OKNii(*s
runProjectsselfstrUtf8scapsStartDialogsargvHistorys	wdHistorys
exceptionssuisdlgs	exec_loopsQDialogsAcceptedsgetDatasargvswdsgetCoverageDataseraseTimingss
getProjectsprojects
getMainScriptsfnsNonesQMessageBoxscriticalssaveAllScriptss
setDbgInfosexcListslastStartActionsviewmanagersactiveWindowseditors
checkDirtysgetFileNameslastDebuggedFiles
restartActs
setEnabledsremovesprependsunhighlightsdbss
remoteProfile(sselfs
runProjectswdsdlgscapsargvsprojectseditors
exceptionsseraseTimingssfn((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleProfilesL

*cs|iddS(s?
        Private slot to handle the run script action.
        iN(sselfs	handleRun(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleRunScriptscs|iddS(s@
        Private slot to handle the run project action.
        iN(sselfs	handleRun(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleRunProjectsc
s|o|id}n|id}t||i|i|i|id}|i
tijo
|i
\}}}|o|ii}|id}	|	tjoK	ti|i
|id|id
|iddSn|iodSn|i||||id|_n~|ii}|tjodSn|ii|p|itjodSn |i}	!d|_$|	|_ %|i!i"d)|ii#|*|ii$|+|ii#|,|ii$|/||_2|ii%5|i&i'|	||ndS(	s
        Private method to handle the run actions.
        
        Arguments
        
            runProject -- flag indicating running the current project (1)
                or script (0)
        sRun Projects
Run ScriptisAThere is no main script defined for the current project. Abortings&OKNii((s
runProjectsselfstrUtf8scapsStartDialogsargvHistorys	wdHistorys
exceptionssuisdlgs	exec_loopsQDialogsAcceptedsgetDatasargvswds
getProjectsprojects
getMainScriptsfnsNonesQMessageBoxscriticalssaveAllScriptss
setDbgInfosexcListslastStartActionsviewmanagersactiveWindowseditors
checkDirtysgetFileNameslastDebuggedFiles
restartActs
setEnabledsremovesprependsunhighlightsdbss	remoteRun(
sselfs
runProjectswdsdlgscapsargvsprojectseditors
exceptionssfn((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys	handleRunsJ

*cs7:;|iddS(sA
        Private slot to handle the debug script action.
        iN(sselfshandleDebug(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleDebugScript7scs=@A|iddS(sB
        Private slot to handle the debug project action.
        iN(sselfshandleDebug(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleDebugProject=sc
sCKN|oO|id}nQ|id}Rt||i|iS|i|id}T|i
tijoU|i
\}}}W|oX|ii}Y|id}	Z|	tjoK[ti|i\|id]|id_|id`dSnb|iocdSnf|i||||ihd|_n~j|ii}k|tjoldSnn|ii|p|itjopdSnr|i}	sd|_v|	|_ w|i!i"d{|ii#|||ii$|}|ii#|~|ii$|||_|ii%|i&i'd|i(o5|i&i)t*i+i,t*i+i-t.|	n|i&i)t.||i/i0|	|||i1t2d	|	fndS(
s
        Private method to handle the debug actions.
        
        Arguments
        
            debugProject -- flag indicating debugging the current project (1)
                or script (0)
        s
Debug ProjectsDebug ScriptiisOThere is no main script defined for the current project. No debugging possible.s&OKNisdebuggingStarted(3sdebugProjectsselfstrUtf8scapsStartDialogsargvHistorys	wdHistorys
exceptionssuisdlgs	exec_loopsQDialogsAcceptedsgetDatasargvswds
getProjectsprojects
getMainScriptsfnsNonesQMessageBoxscriticalssaveAllScriptss
setDbgInfosexcListslastStartActionsviewmanagersactiveWindowseditors
checkDirtysgetFileNameslastDebuggedFiles
restartActs
setEnabledsremovesprependsunhighlightssbvsshowVariablesTabsisEmptyssetWDsosspathsdirnamesabspathsstrsdbss
remoteLoadsemitsPYSIGNAL(
sselfsdebugProjectsprojectswdsdlgscapsargvseditors
exceptionssfn((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleDebugCsT

*5cs|iddgjoD|ii|i\}}|ii|odSnnS|iddgjo2|ii	}|iodSnndS|id}|id}|i}|ii|iddgjo|iid|io5|iitiitiit|n|iit||ii||||itd|fn7|iddgjo|ii|||ndS(s^
        Private slot to handle the restart action to restart the last debugged file.
        iiNiiisdebuggingStarted( sselfslastStartActionsviewmanagers	getEditorslastDebuggedFilesdummyseditors
checkDirtysuis
getProjectsprojectssaveAllScriptss	wdHistoryswdsargvHistorysargvsfnsunhighlightssbvsshowVariablesTabsisEmptyssetWDsosspathsdirnamesabspathsstrsdbss
remoteLoadsemitsPYSIGNALs	remoteRun(sselfsprojectsdummyswdseditorsfnsargv((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleRestarts.5 cs-|ii|iiddS(sG
        Private slot to handle a passive debug session start.
        iN(sselfsviewmanagersunhighlightssbvsshowVariablesTab(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandlePassiveDebugStartedscs3d|_|i|iidS(s?
        Private method to handle the Continue action.
        iN(sselfs
lastActionsenterRemotesdbssremoteContinue(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleContinues
cs3d|_|i|iidS(s;
        Private method to handle the Step action.
        iN(sselfs
lastActionsenterRemotesdbss
remoteStep(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleSteps
cs3d|_|i|iidS(s@
        Private method to handle the Step Over action.
        iN(sselfs
lastActionsenterRemotesdbssremoteStepOver(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleStepOvers
cs3d|_|i|iidS(s?
        Private method to handle the Step Out action.
        iN(sselfs
lastActionsenterRemotesdbss
remoteStepOut(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleStepOuts
cs@d|_|i|ii|idS(s@
        Private method to handle the Step Quit action.
        iN(sselfs
lastActionsenterRemotesdbssremoteStepQuitsresetUI(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleStepQuits

cst|idjo
d}n
d}ti|id|id|i|d|i\}}|oX|i
odSn|ii||ii||i
i|ndS(s;
        Private method to handle the Eval action.
        iisEvaluatesEnter the statement to evaluateiN(slensselfsevalHistoryscurrsQInputDialogsgetItemstrUtf8suisargsoksisNullsremovesprependsdbss
remoteEval(sselfsoksargscurr((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleEvals
	!
cs	t|idjo
d}n
d}ti|id|id|i|d|i\}}|oX|i
odSn|ii||ii|!|i
i|ndS(s;
        Private method to handle the Exec action.
        iisExecutesEnter the statement to executeiN(slensselfsexecHistoryscurrsQInputDialogsgetItemstrUtf8suisstmtsoksisNullsremovesprependsdbss
remoteExec(sselfsokscurrsstmt((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleExec	s
	!
csC#)+|iid,|iid.|iiddS(s
        Private method to update the user interface.

        This method is called just prior to executing some of
        the program being debugged.
        iiN(sselfsdebugActGrps
setEnabledsdebugActGrp2sviewmanagersunhighlight(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysenterRemote#scs0;<|ii|SdS(s
        Public method to get all file breakpoints.
        
        Arguments
        
            fn -- filename (string)
            
        Returns
        
            list of file breakpoints
        N(sselfsdbssgetFileBreakpointssfn(sselfsfn((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysgetFileBreakpoints0scs>EF|iiSdS(s|
        Public method to get all breakpoints
        
        Returns
        
            list of all breakpoints
        N(sselfsdbssgetAllBreakpoints(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysgetAllBreakpoints>scs/HOP|ii|iiidSdS(s
        Public method to get all breakpoints of the current project
        
        Returns
        
            list of breakpoints belonging to the current project
        iN(sselfsdbssgetProjectBreakpointssuis
getProjects
getSources(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysgetProjectBreakpointsHscsbRYZg}[xB|idD[].}\t|to]|i|nq"W_|SdS(s
        Public method to get a list of all actions.
        
        Returns
        
            list of all actions (list of QAction)
        sQActionN(s
actionListsselfs	queryListsacts
isinstancesQActionGroupsappend(sselfs
actionListsact((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
getActionsRs		(:s__name__s
__module__s__doc__s__init__sinitActionssinitMenusinitToolbarssetArgvHistoryssetWdHistoryssetExceptionReportings
setExcListshandleEditorOpenedshandleLastEditorClosedshandleProjectOpenedshandleProjectClosedshandleProjectSessionLoadedsshutdownServersresetUIshandleLineChanges
handleExitshandleSyntaxErrorshandleExceptionshandleClientGonesgetClientVariablesshandleClientVariablesshandleConfigFiltersshandleExceptionsFiltershandleToggleBreakpointshandleToggleCBreakpointshandleAllFileBpshandleAllBpshandleProjectBpshandleCoverageScriptshandleCoverageProjectshandleCoverageshandleProfileScriptshandleProfileProjects
handleProfileshandleRunScriptshandleRunProjects	handleRunshandleDebugScriptshandleDebugProjectshandleDebugs
handleRestartshandlePassiveDebugStartedshandleContinues
handleStepshandleStepOvers
handleStepOutshandleStepQuits
handleEvals
handleExecsenterRemotesgetFileBreakpointssgetAllBreakpointssgetProjectBreakpointss
getActions(((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pysDebugUIsrI,%




*



GGFP)
	


(
s__doc__sossqts
DebugIconssUI.InfosVariablesFilterDialogsExceptionsFilterDialogsBreakpointDialogsStartDialogsPreferencess	UtilitiessQObjectsDebugUI(sDebugUIsossPreferencess	Utilities((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys?s








Table of Contents

This document was automatically generated by HappyDoc version 2.1