Table of Contents

Eric3 Source Documentation: Debugger  
-í
�$?cs“dZ
dkZdkTdkTdkTdkTdkTdkTdkTdk	Z	dk
Z
defd„ƒYZdS(s&
Module implementing the debugger UI.
N(s*sDebugUIcs¨tZdZd„Zdd„Z�d„Z´d„ZÎd„ZÙd„Zäd„Z	îd„Z
ød	„Zd
„Zd„Z
$d„Z4d
„Z>d„ZKd„Zad„Zpd„Z�d„Z�d„ZÇd„ZÔd„Zàd„Zýd„Z
d„Zd„Zd„Z&d„Z2d„Z8d„Z?d„Z Ed„Z!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.„Z0Þd/„Z1æd0„Z2ïd1„Z3	d2„Z4#d3„Z50d4„Z6>d5„Z7Hd6„Z8Rd7„Z9RS(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!|iƒK|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ƒ|i3ƒbti4dƒ|_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 Dialogiiÿÿÿÿs
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|idƒittƒj|idƒti|ƒ|_k|ii|idƒƒl|ii	|idƒƒq|i
|itdƒ|iƒst|idƒttt
ƒu|idƒtiti|ƒ|_v|ii|idƒƒw|ii	|id	ƒƒ~|i
|itdƒ|iƒ€t|id
ƒ�ttƒ‚|idƒd|ƒ|_ƒ|ii|id
ƒƒ„|ii	|idƒƒŠ|i
|itdƒ|iƒŒt|idƒ�ttƒŽ|idƒd|ƒ|_�|ii|idƒƒ�|ii	|idƒƒ—|i
|itdƒ|iƒ™t|idƒšttƒ›|idƒd|ƒ|_œ|ii|idƒƒ�|ii	|idƒƒ¢|i
|itdƒ|iƒ¤t|idƒ¥ttƒ¦|idƒd|ƒ|_§|ii|idƒƒ¨|ii	|idƒƒ®|i
|itdƒ|iƒ°t|idƒ±ttƒ²|idƒti|ƒ|_³|ii|idƒƒ´|ii	|idƒƒº|i
|itdƒ|i ƒ¼t|idƒ½tt!ƒ¾|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ƒ|i0ƒñt|id/ƒòtt1ƒó|id0ƒti2ô|i)ƒ}õ|i|id1ƒƒö|i	|id2ƒƒý|i
|tdƒ|i3ƒÿt|id3ƒtt4ƒ|id4ƒti5|i)ƒ}|i|id5ƒƒ|i	|id6ƒƒ|i
|tdƒ|i6ƒ
t|id7ƒtt7ƒ|id8ƒti8|i)ƒ}|i|id9ƒƒ|i	|id:ƒƒ|i
|tdƒ|i9ƒt(|ƒ|_: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|idCƒ2|idDƒd|ƒ|_=3|i=i|idEƒƒ4|i=i	|idFƒƒ:|i
|i=tdƒ|i>ƒ<t|idGƒ=|idHƒd|ƒ|_?>|i?i|idIƒƒ?|i?i	|idJƒƒF|i
|i?tdƒ|i@ƒHt(|ƒ|_AJt|idKƒK|idKƒtiBL|iAƒ}M|i|idKƒƒN|i	|idLƒƒS|i
|tdƒ|iCƒUt|idMƒV|idMƒtiDW|iAƒ}X|i|idMƒƒY|i	|idNƒƒ^|i
|tdƒ|iEƒ`t(|ƒ|_Fbt|idOƒc|idPƒd|iFƒ}d|i|idQƒƒe|i	|idRƒƒj|i
|tdƒ|iGƒlt|idSƒm|idTƒd|iFƒ}n|i|idUƒƒo|i	|idVƒƒt|i
|tdƒ|iHƒvt|idWƒw|idXƒd|ƒ|_Ix|iIi|idYƒƒy|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:!"("""""!"("!""""csË�–—t|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.pysinitMenu�s8








cs´»¼t|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.pysinitToolbar´s"



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.pyssetArgvHistoryÎscs0Ùàá|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setWdHistoryÙscsäëì||_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.pyssetExceptionReportingäscsîõö||_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
setExcListîscsšøûü|ioPý|iidƒþ|iidƒÿ|iidƒ|iidƒn|iidƒ|iidƒd|_	dS(sA
        Private slot to handle the editorOpened signal.
        iN(
sselfspassivesdebugActs
setEnabledsrunActs
profileActscoverageActsdbgAllBpActGrpsdbgSetBpActGrps
editorOpen(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleEditorOpenedøscs÷	d|_
|iidƒ|iidƒ|iidƒ
|iidƒ|iidƒ|iidƒ|i	idƒ|i
idƒd|_|io/|i
idƒt|_d|_ndS(sA
        Private slot to handle the closeProgram signal.
        iiÿÿÿÿN(sselfs
editorOpensdebugActs
setEnabledsrunActs
profileActscoverageActsdebugActGrpsdebugActGrp2sdbgAllBpActGrpsdbgSetBpActGrps
lastActionsprojectOpens
restartActsNoneslastDebuggedFileslastStartAction(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleLastEditorClosedscs‡d|_|ioP|iidƒ|iidƒ |iidƒ!|iidƒn"|iidƒdS(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	idƒ1t
|_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|iiƒidƒ}9|tj	o/:d|_;||_<|ii	dƒndS(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|iiƒIdSdS(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|iidƒP|iidƒQ|ioR|ii|iƒS|ii|iƒT|ii|iƒU|i	i|iƒV|i
i|iƒW|ii|iƒX|i
i|iƒY|ii|iƒZ|itj	o|ip|io\|iidƒn^|iidƒn_|itdƒfƒdS(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|iiƒl|iiƒm|ii||ƒn|iƒdS(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|iiƒz|iƒ|ti|it}|idƒi	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ƒ‹|iiƒ�y?Žt|ƒ\}\}}}�|tjo
�d}nWn6‘’ti
|it“|idƒƒ”dSnX–|ii||dƒ—ti
|it˜|idƒi|ƒ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.pyshandleSyntaxError�s
c	s1�¤¥|iiƒ¦|iiƒ§tiƒ¨y©t|ƒ}Wn6ª«t	i
|it¬|idƒƒ­dSnX¯|d \}}\}}°|io4t|iƒp#t|iƒot|ƒ|ijp
|idƒo´|ii||dƒµt	i
|it¶|idƒit|ƒƒi|ƒi|ƒi|ƒ»|idƒ|idƒƒ}¼|djow½g}¾x4|d	D¾]%\}}¿|i||d
fƒqžWÀ|itdƒ|fƒÁ|iƒÂdSnnÄ|idjoÅ|i |iƒndS(
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.pyshandleException�s4
T9!	
csJÇÎÏ|o6Ð|iƒÑti|itÒ|idƒƒndS(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.pyshandleClientGoneÇs


cs#ÔÛÝ|iid|iƒdS(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.pysgetClientVariablesÔscs6àçèt|ƒ}é|d}êyë|d}Wnìíg}nXï|djo3ð|ii|dƒò|iid|i	ƒnjó|djoô|ii|dƒn@õ|djo/ödddfg}÷|ii|dƒnù|djo*ú|i
idƒû|iidƒndS(s´
        Private method to write the clients variables to the user interface.
        
        Arguments
        
            vars -- the list of variables from the client
        iiiÿÿÿÿsNonesN(
sevalsvarssvlistsscopesselfssbvs
showVariablessdbssremoteClientVariablesslocalsVarFiltersdebugActGrps
setEnabledsdebugActGrp2(sselfsvarssscopesvlist((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleClientVariablesàs$

csƒý|iiƒ}|tijo"|iiƒ\|_|_n|ii	|i|iƒ|i
i|iƒdS(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.pyshandleConfigFiltersýs"csK

t|iƒ}|iƒtijo|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
dƒt
iƒdS(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|iddtiƒiƒdS(s>
        Private slot for displaying all breakpoints.
        sBPDialogiN(sBreakpointDialogsselfsuisQtsWDestructiveCloses	exec_loop(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleAllBp2scs28;<t|iddti=dƒiƒdS(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|idƒdS(sG
        Private slot to handle the coverage of script action.
        iN(sselfshandleCoverage(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleCoverageScript?scsEHI|idƒdS(sH
        Private slot to handle the coverage of project action.
        iN(sselfshandleCoverage(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleCoverageProjectEscsžKSV|oW|idƒ}nY|idƒ}Zt||i|i[|i|idƒ}\|i
ƒtijo]|i
ƒ\}}}^|iƒ}	`|oÇa|iiƒ}b|idƒ}
c|
tjoKdti|ie|idƒf|idƒh|idƒƒidSnk|iƒoldSno|i||||iƒqd|_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’•–|idƒdS(sC
        Private slot to handle the profile script action.
        iN(sselfs
handleProfile(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleProfileScript’scs˜›œ|idƒdS(sD
        Private slot to handle the profile project action.
        iN(sselfs
handleProfile(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleProfileProject˜scsžž¦©|oª|idƒ}n¬|idƒ}­t||i|i®|i|idƒ}¯|i
ƒtijo°|i
ƒ\}}}±|iƒ}	³|oÇ´|iiƒ}µ|idƒ}
¶|
tjoK·ti|i¸|idƒ¹|idƒ»|idƒƒ¼dSn¾|iƒo¿dSnÂ|i||||iƒÄd|_n~Æ|iiƒ}Ç|tjoÈdSnÊ|ii |ƒp|i!ƒtjoÌdSnÎ|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
handleProfiležsL

*csåèé|idƒdS(s?
        Private slot to handle the run script action.
        iN(sselfs	handleRun(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleRunScriptåscsëîï|idƒdS(s@
        Private slot to handle the run project action.
        iN(sselfs	handleRun(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleRunProjectësc
sŒñùü|oý|idƒ}nÿ|idƒ}t||i|i|i|idƒ}|i
ƒtijo
|i
ƒ\}}}|oÇ|iiƒ}|idƒ}	|	tjoK	ti|i
|idƒ|idƒ
|idƒƒdSn|iƒodSn|i||||iƒd|_n~|iiƒ}|tjodSn|ii|ƒp|iƒtjodSn |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	handleRunñsJ

*cs7:;|idƒdS(sA
        Private slot to handle the debug script action.
        iN(sselfshandleDebug(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleDebugScript7scs=@A|idƒdS(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jo—U|i
ƒ\}}}W|oÇX|iiƒ}Y|idƒ}	Z|	tjoK[ti|i\|idƒ]|idƒ_|idƒƒ`dSnb|iƒocdSnf|i||||iƒhd|_n~j|iiƒ}k|tjoldSnn|ii|ƒp|iƒtjopdSnr|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	ƒ|	fƒndS(
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|ƒo›dSnnSœ|iddgjo2�|ii	ƒ}ž|iƒoŸdSnn¡dS¤|id}¥|id}¦|i}©|iiƒ«|iddgjoª­|iidƒ®|iƒo5¯|iitiitiit|ƒƒƒƒn±|iit|ƒƒ´|ii|||ƒ·|itdƒ|fƒn7¸|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
handleRestart“s.5 cs-¼¿Á|iiƒÄ|iidƒdS(sG
        Private slot to handle a passive debug session start.
        iN(sselfsviewmanagersunhighlightssbvsshowVariablesTab(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandlePassiveDebugStarted¼scs3ÆÉÊd|_Ë|iƒÌ|iiƒdS(s?
        Private method to handle the Continue action.
        iN(sselfs
lastActionsenterRemotesdbssremoteContinue(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleContinueÆs
cs3ÎÑÒd|_Ó|iƒÔ|iiƒdS(s;
        Private method to handle the Step action.
        iN(sselfs
lastActionsenterRemotesdbss
remoteStep(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleStepÎs
cs3ÖÙÚd|_Û|iƒÜ|iiƒdS(s@
        Private method to handle the Step Over action.
        iN(sselfs
lastActionsenterRemotesdbssremoteStepOver(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleStepOverÖs
cs3Þáâd|_ã|iƒä|iiƒdS(s?
        Private method to handle the Step Out action.
        iN(sselfs
lastActionsenterRemotesdbss
remoteStepOut(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleStepOutÞs
cs@æéêd|_ë|iƒì|iiƒí|iƒdS(s@
        Private method to handle the Step Quit action.
        iN(sselfs
lastActionsenterRemotesdbssremoteStepQuitsresetUI(sself((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pyshandleStepQuitæs

csàïòôt|iƒdjo
õ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.
        iiÿÿÿÿsEvaluatesEnter the statement to evaluateiN(slensselfsevalHistoryscurrsQInputDialogsgetItemstrUtf8suisargsoksisNullsremovesprependsdbss
remoteEval(sselfsoksargscurr((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleEvalïs
	!
csà	t|iƒdjo
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.
        iiÿÿÿÿsExecutesEnter the statement to executeiN(slensselfsexecHistoryscurrsQInputDialogsgetItemstrUtf8suisstmtsoksisNullsremovesprependsdbss
remoteExec(sselfsokscurrsstmt((s>/home/detlev/Development/Python/Eric/eric3/Debugger/DebugUI.pys
handleExec	s
	!
csC#)+|iidƒ,|iidƒ.|iidƒdS(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|iiƒSdS(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|iiƒidƒƒSdS(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|idƒD[].}\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