ž ¨ÿfíìc"@sºdZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z Gdd„deƒZddddd d d d d g Zdd„Zdd„Zdd„ZGdd„deƒZdZGdd„dejejƒZeek rþd ddddddddd d!d"d#d$d%d&d'd(dd)d*d+d,d-d.d/d0d1d2d3d4d5d6d7g"Zx2eD]*Zeeed8eƒjjƒd97Zq·Weejj7Z[[need:d„Z eed;d„Z!d<d „Z"d=d „Z#d>d „Z$ed?d „Z%d@d„Z&dAZ'dBdC„Z(dDd „Z)dEZ*dFdG„Z+e,dHkr¶ddl-Z-e-j+ƒndS(Iu^ The Python Debugger Pdb ======================= To use the debugger in its simplest form: >>> import pdb >>> pdb.run('') The debugger's prompt is '(Pdb) '. This will stop in the first function call in . Alternatively, if a statement terminated with an unhandled exception, you can use pdb's post-mortem facility to inspect the contents of the traceback: >>> >>> import pdb >>> pdb.pm() The commands recognized by the debugger are listed in the next section. Most can be abbreviated as indicated; e.g., h(elp) means that 'help' can be typed as 'h' or 'help' (but not as 'he' or 'hel', nor as 'H' or 'Help' or 'HELP'). Optional arguments are enclosed in square brackets. Alternatives in the command syntax are separated by a vertical bar (|). A blank line repeats the previous command literally, except for 'list', where it lists the next 11 lines. Commands that the debugger doesn't recognize are assumed to be Python statements and are executed in the context of the program being debugged. Python statements can also be prefixed with an exclamation point ('!'). This is a powerful way to inspect the program being debugged; it is even possible to change variables or call functions. When an exception occurs in such a statement, the exception name is printed but the debugger's state is not changed. The debugger supports aliases, which can save typing. And aliases can have parameters (see the alias help entry) which allows one a certain level of adaptability to the context under examination. Multiple commands may be entered on a single line, separated by the pair ';;'. No intelligence is applied to separating the commands; the input is split at the first ';;', even if it is in the middle of a quoted string. If a file ".pdbrc" exists in your home directory or in the current directory, it is read in and executed as if it had been typed at the debugger prompt. This is particularly useful for aliases. If both files exist, the one in the home directory is read first and aliases defined there can be overriden by the local file. Aside from aliases, the debugger is not directly programmable; but it is implemented as a class from which you can derive your own debugger class, which you can make as fancy as you like. Debugger commands ================= iNcBs|EeZdZdZdS(uRestartuBCauses a debugger to be restarted for the debugged python program.N(u__name__u __module__u __qualname__u__doc__(u __locals__((u(/opt/alt/python33/lib64/python3.3/pdb.pyuRestartTsuRestarturunupmuPdburunevalurunctxuruncallu set_traceu post_mortemuhelpc Cs­tjdtj|ƒƒ}yt|ƒ}Wntk rDdSYnXd}d}xK|jƒ}|dkrpPn|j|ƒr’|||f}Pn|d7}qT|jƒ|S(Nudef\s+%s\s*[(]iu( ureucompileuescapeuopenuIOErroruNoneureadlineumatchuclose(ufuncnameufilenameucreufpulinenouansweruline((u(/opt/alt/python33/lib64/python3.3/pdb.pyu find_function[s"      u find_functioncCsztj|ƒ\}}tj|ƒr@|j|jkr@|dfStj|ƒrY|dfStj||d…ƒ|dfS(Ni(uinspectu findsourceuisframeu f_globalsuf_localsuismoduleugetblock(uobjulinesulineno((u(/opt/alt/python33/lib64/python3.3/pdb.pyugetsourcelinesos !  ugetsourcelinescCsJttj|ƒƒ}|jƒx$|D]\}}||kr&|Sq&WdS(Ni(ulistudisufindlinestartsureverse(ucodeulastiu linestartsuiulineno((u(/opt/alt/python33/lib64/python3.3/pdb.pyu lasti2linenoxs   u lasti2linenocBs&|EeZdZdZdd„ZdS(u_rstru#String that doesn't quote its repr.cCs|S(N((uself((u(/opt/alt/python33/lib64/python3.3/pdb.pyu__repr__ƒsu_rstr.__repr__N(u__name__u __module__u __qualname__u__doc__u__repr__(u __locals__((u(/opt/alt/python33/lib64/python3.3/pdb.pyu_rstrsu_rstru -> cBsª|EeZdZdddddždd„Zdd„Zdd„Zdd „Zd d „Z d d „Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„Zd$d%„Zd&d'„Zd(d)„Zd*d+„Zd,d-„Zd.d/„Zd0d1„Zd2d3„ZeZd4d5d6„Zd7d8„Z eZ!eZ"eZ#d9d:„Z$eZ%d;d<„Z&d=d>„Z'd?d@„Z(eZ)dAdB„Z*eZ+dCdD„Z,eZ-dEdF„Z.eZ/dGdH„Z0e0Z1eZ2eZ3dIdJ„Z4e4Z5e4Z6dKdL„Z7dMdN„Z8e8Z9dOdP„Z:e:Z;dQdR„Z<e<Z=dSdT„Z>e>Z?dUdV„Z@e@ZAdWdX„ZBeBZCdYdZ„ZDeDZEd[d\„ZFeFZGZHd]d^„ZIeIZJd_d`„ZKeZLdadb„ZMeMZNeMZOdcdd„ZPdedf„ZQeQZRdgdh„ZSeSZTdidj„ZUddkdl„ZVdmdn„ZWeWZXdodp„ZYeZZeZ[eZ\dqdr„Z]e]Z^dsdt„Z_e_Z`dudv„ZaeZbfddwdx„Zcdydz„ZdeZed{d|„ZfeZgd}d~„Zhdd€„Zidd‚„Zjdƒd„„Zkd…d†„Zld‡dˆ„Zmd‰dŠd‹dŒddŽgZndd„Zoepd‘d’„Zqd“d”„ZrerZsd•d–„Ztd—d˜„Zud™dš„Zvd›dœ„ZwdS(ŸuPdbutabc #CsŸtjj|d|ƒtjj||||ƒ|rAd|_nd|_i|_i|_d|_ d|_ i|_ yddl }|jdƒWntk r¨YnXd|_||_g|_dtjkr0tjd}y8ttjj|dƒƒ}|jj|ƒWdQXWq0tk r,Yq0Xny)tdƒ}|jj|ƒWdQXWntk rmYnXi|_i|_i|_d|_d|_dS( Nuskipiu(Pdb) uu `@#$%^&*()=+[{]}\|;:'",<>?uHOMEu.pdbrcF( ubdbuBdbu__init__ucmduCmdu use_rawinputupromptualiasesu displayingu mainpyfileuFalseu_wait_for_mainpyfileu tb_linenoureadlineuset_completer_delimsu ImportErroru allow_kbdintunosiginturcLinesuosuenvironuopenupathujoinuextenduIOErrorucommandsucommands_dopromptucommands_silentucommands_defininguNoneu commands_bnum( uselfu completekeyustdinustdoutuskipunosigintureadlineuenvHomeurcFile((u(/opt/alt/python33/lib64/python3.3/pdb.pyu__init__sF                   u Pdb.__init__cCsP|jrt‚n|jdƒ|jƒ|j|ƒtjtj|jƒdS(Nu- Program interrupted. (Use 'cont' to resume).(u allow_kbdintuKeyboardInterruptumessageuset_stepu set_traceusignaluSIGINTu_previous_sigint_handler(uselfusignumuframe((u(/opt/alt/python33/lib64/python3.3/pdb.pyusigint_handler¿s      uPdb.sigint_handlercCstjj|ƒ|jƒdS(N(ubdbuBdburesetuforget(uself((u(/opt/alt/python33/lib64/python3.3/pdb.pyuresetÈsu Pdb.resetcCs5d|_g|_d|_d|_|jjƒdS(Ni(uNoneulinenoustackucurindexucurframeu tb_linenouclear(uself((u(/opt/alt/python33/lib64/python3.3/pdb.pyuforgetÌs     u Pdb.forgetcCs–|jƒ|j||ƒ\|_|_x;|ret|jj|jƒ}||j|j<|j }q+W|j|jd|_ |j j |_ |j ƒS(Ni(uforgetu get_stackustackucurindexu lasti2linenoutb_frameuf_codeutb_lastiu tb_linenoutb_nextucurframeuf_localsucurframe_localsu execRcLines(uselfufutbulineno((u(/opt/alt/python33/lib64/python3.3/pdb.pyusetupÓs   u Pdb.setupcCs|js dS|j}|jƒg|_x]|rˆ|jƒjƒ}|r,|ddkr,|j|ƒr…|jt|ƒ7_dSq,q,WdS(Niu#T(urcLinesureverseupopustripuonecmdureverseduTrue(uselfurcLinesuline((u(/opt/alt/python33/lib64/python3.3/pdb.pyu execRcLinesås     uPdb.execRcLinescCs@|jr dS|j|ƒr<|jdƒ|j|dƒndS(unThis method is called when there is the remote possibility that we ever need to stop in this function.Nu--Call--(u_wait_for_mainpyfileu stop_hereumessageu interactionuNone(uselfuframeu argument_list((u(/opt/alt/python33/lib64/python3.3/pdb.pyu user_callùs   u Pdb.user_callcCsl|jrF|j|j|jjƒks6|jdkr:dSd|_n|j|ƒrh|j|dƒndS(u;This function is called when we stop or break at this line.iNF( u_wait_for_mainpyfileu mainpyfileucanonicuf_codeu co_filenameuf_linenouFalseu bp_commandsu interactionuNone(uselfuframe((u(/opt/alt/python33/lib64/python3.3/pdb.pyu user_lines  u Pdb.user_linecCsÐt|ddƒrÌ|j|jkrÌ|j}d|_|j}|j|dƒx"|j|D]}|j|ƒq]W||_|j|s¤|j |j |j ƒn|j |r¾|j ƒn|jƒdSdS(u¾Call every command that was set for the current active breakpoint (if there is one). Returns True if the normal interaction function must be called, False otherwise.u currentbpiNiF(ugetattruFalseu currentbpucommandsulastcmdusetupuNoneuonecmducommands_silentuprint_stack_entryustackucurindexucommands_dopromptu_cmdloopuforget(uselfuframeu currentbpu lastcmd_backuline((u(/opt/alt/python33/lib64/python3.3/pdb.pyu bp_commands s         uPdb.bp_commandscCs;|jr dS||jd<|jdƒ|j|dƒdS(u7This function is called when a return trap is set here.Nu __return__u --Return--(u_wait_for_mainpyfileuf_localsumessageu interactionuNone(uselfuframeu return_value((u(/opt/alt/python33/lib64/python3.3/pdb.pyu user_return$s    uPdb.user_returncCsf|jr dS|\}}}||f|jd<|jtj||ƒdjƒƒ|j||ƒdS(uoThis function is called if an exception occurs, but only if we are to stop at or just below this level.Nu __exception__iiÿÿÿÿ(u_wait_for_mainpyfileuf_localsumessageu tracebackuformat_exception_onlyustripu interaction(uselfuframeuexc_infouexc_typeu exc_valueu exc_traceback((u(/opt/alt/python33/lib64/python3.3/pdb.pyuuser_exception,s uPdb.user_exceptionc CsMxFy!d|_|jƒd|_PWqtk rE|jdƒYqXqdS(Nu--KeyboardInterrupt--TF(uTrueu allow_kbdintucmdloopuFalseuKeyboardInterruptumessage(uself((u(/opt/alt/python33/lib64/python3.3/pdb.pyu_cmdloop8s    u Pdb._cmdloopcCs|jj|jƒ}|r‰xk|jƒD]Z\}}|j|ƒ}||k r(||kr(|||<|jd|||fƒq(q(WndS(Nudisplay %s: %r [old: %r](u displayingugetucurframeuitemsu_getval_exceptumessage(uselfu displayinguexpruoldvalueunewvalue((u(/opt/alt/python33/lib64/python3.3/pdb.pyupreloopEs  u Pdb.preloopcCsO|j||ƒr |jƒdS|j|j|jƒ|jƒ|jƒdS(N(usetupuforgetuprint_stack_entryustackucurindexu_cmdloop(uselfuframeu traceback((u(/opt/alt/python33/lib64/python3.3/pdb.pyu interactionRs   uPdb.interactioncCs&|dk r"|jt|ƒƒndS(u{Custom displayhook for the exec in default(), which prevents assignment of the _ variable in the builtins. N(uNoneumessageurepr(uselfuobj((u(/opt/alt/python33/lib64/python3.3/pdb.pyu displayhook\s uPdb.displayhookc Cs|dd…dkr)|dd…}n|j}|jj}yŒt|dddƒ}tj}tj}tj}z8|jt_|jt_|jt_t|||ƒWd|t_|t_|t_XWn>tj ƒdd…}|j t j |Œdj ƒƒYnXdS(Niu!u uusingleiiÿÿÿÿ(ucurframe_localsucurframeu f_globalsucompileusysustdoutustdinu displayhookuexecuexc_infouerroru tracebackuformat_exception_onlyustrip( uselfulineulocalsuglobalsucodeu save_stdoutu save_stdinusave_displayhookuexc_info((u(/opt/alt/python33/lib64/python3.3/pdb.pyudefaultds(          u Pdb.defaultcCs4|jƒs|S|jƒ}x |d|jkr¾|j|d}d}x>|dd…D],}|jdt|ƒ|ƒ}|d7}qZW|jddj|dd…ƒƒ}|jƒ}qW|ddkr0|jdƒ}|dkr0||d d…jƒ}|jj |ƒ|d|…j ƒ}q0n|S( u*Handle alias expansion and ';;' separator.iiNu%u%*u ualiasu;;i( ustripusplitualiasesureplaceustrujoinufindulstripucmdqueueuappendurstrip(uselfulineuargsuiiutmpArgumarkerunext((u(/opt/alt/python33/lib64/python3.3/pdb.pyuprecmdzs&   % u Pdb.precmdcCs-|jstjj||ƒS|j|ƒSdS(uÒInterpret the argument as though it had been typed in response to the prompt. Checks whether this line is typed at the normal prompt or in a breakpoint command list definition. N(ucommands_definingucmduCmduonecmduhandle_command_def(uselfuline((u(/opt/alt/python33/lib64/python3.3/pdb.pyuonecmd“s u Pdb.onecmdc Csþ|j|ƒ\}}}|s"dS|dkrBd|j|jÝs u*Pdb._complete_bpnumber..(u enumerateubdbu Breakpointu bpbynumber(uselfutextulineubegidxuendidx((utextu(/opt/alt/python33/lib64/python3.3/pdb.pyu_complete_bpnumberÙsuPdb._complete_bpnumberc s|js gS|jjjƒ}|j|jƒdˆkrâˆjdƒ‰y<|ˆd}x'ˆdd…D]}t||ƒ}qlWWnttfk r¤gSYnXdj ˆdd…ƒd‰‡‡fdd†t |ƒDƒS‡fdd†|j ƒDƒSdS( Nu.iics-g|]#}|jˆdƒrˆ|‘qS(iiÿÿÿÿ(u startswith(u.0un(udotteduprefix(u(/opt/alt/python33/lib64/python3.3/pdb.pyu õs u,Pdb._complete_expression..cs%g|]}|jˆƒr|‘qS((u startswith(u.0un(utext(u(/opt/alt/python33/lib64/python3.3/pdb.pyu øs iÿÿÿÿiÿÿÿÿ( ucurframeu f_globalsucopyuupdateucurframe_localsusplitugetattruKeyErroruAttributeErrorujoinudirukeys(uselfutextulineubegidxuendidxunsuobjupart((udotteduprefixutextu(/opt/alt/python33/lib64/python3.3/pdb.pyu_complete_expressionàs    uPdb._complete_expressioncCsz|sttjjƒd}n,yt|ƒ}Wn|jdƒdSYnX||_||jkrŠ|j||j||j |f}nd}g|j|(ucurframeuf_codeu co_filenameu mainpyfile(uselfufilename((u(/opt/alt/python33/lib64/python3.3/pdb.pyu defaultFileªs uPdb.defaultFilecCs|j|dƒdS(u¶tbreak [ ([filename:]lineno | function) [, condition] ] Same arguments as break, but sets a temporary breakpoint: it is automatically deleted when first hit. iN(udo_break(uselfuarg((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_tbreak¶su Pdb.do_tbreakc Cs"d}|jdƒ}t|ƒdkr:|djƒ}n)t|ƒdkr_|djƒ}n|S|dkrs|S|jdƒ}|ddkr²|d=t|ƒdkr²|Sn|jƒ}t|ƒdkrÝ|d}n,|j|dƒ}|rÿ|}n|d}t||ƒ} | p!|S( Nu'iiiuu.uself(NNN(uNoneusplitulenustripu defaultFileu lookupmoduleu find_function( uselfu identifierufaileduidstringuidupartsufnameuitemufuanswer((u(/opt/alt/python33/lib64/python3.3/pdb.pyulineinfo¿s.     u Pdb.lineinfocCs±t|dƒr|jjnd}tj|||ƒ}|sM|jdƒdS|jƒ}| sœ|ddksœ|dd…dksœ|dd…dkr­|jd ƒdS|S( uÈCheck whether specified line seems to be executable. Return `lineno` if it is, 0 if not (e.g. a docstring, comment, blank line or EOF). Warning: testing is not comprehensive. ucurframeu End of fileiu#Niu"""u'''uBlank or comment( uhasattrucurframeu f_globalsuNoneu linecacheugetlineumessageustripuerror(uselfufilenameulinenouglobsuline((u(/opt/alt/python33/lib64/python3.3/pdb.pyu checklineàs!  , u Pdb.checklinecCs„|jƒ}xq|D]i}y|j|ƒ}Wn2tk r`}z|j|ƒWYdd}~XqX|jƒ|jd|ƒqWdS(u†enable bpnumber [bpnumber ...] Enables the breakpoints given as a space separated list of breakpoint numbers. Nu Enabled %s(usplituget_bpbynumberu ValueErroruerroruenableumessage(uselfuarguargsuiubpuerr((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_enableõs    u Pdb.do_enablecCs„|jƒ}xq|D]i}y|j|ƒ}Wn2tk r`}z|j|ƒWYdd}~XqX|jƒ|jd|ƒqWdS(uNdisable bpnumber [bpnumber ...] Disables the breakpoints given as a space separated list of breakpoint numbers. Disabling a breakpoint means it cannot cause the program to stop execution, but unlike clearing a breakpoint, it remains in the list of breakpoints and can be (re-)enabled. Nu Disabled %s(usplituget_bpbynumberu ValueErroruerrorudisableumessage(uselfuarguargsuiubpuerr((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_disables    uPdb.do_disablecCsé|jddƒ}y|d}Wntk r:d}YnXy|j|djƒƒ}WnPtk ry|jdƒYnltk rª}z|j|ƒWYdd}~Xn;X||_|sÑ|jd|j ƒn|jd|j ƒdS(u#condition bpnumber [condition] Set a new condition for the breakpoint, an expression which must evaluate to true before the breakpoint is honored. If condition is absent, any existing condition is removed; i.e., the breakpoint is made unconditional. u iiuBreakpoint number expectedNu#Breakpoint %d is now unconditional.u$New condition set for breakpoint %d.( usplitu IndexErroruNoneuget_bpbynumberustripuerroru ValueErrorucondumessageunumber(uselfuarguargsucondubpuerr((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_conditions     uPdb.do_conditioncCs|jƒ}yt|djƒƒ}Wnd}YnXy|j|djƒƒ}WnPtk ru|jdƒYn—tk r¦}z|j|ƒWYdd}~XnfX||_|dkrø|dkrÕd|}nd}|jd||j fƒn|jd|j ƒdS( u–ignore bpnumber [count] Set the ignore count for the given breakpoint number. If count is omitted, the ignore count is set to 0. A breakpoint becomes active when the ignore count is zero. When non-zero, the count is decremented each time the breakpoint is reached and the breakpoint is not disabled and any associated condition evaluates to true. iiuBreakpoint number expectedNu %d crossingsu 1 crossingu%Will ignore next %s of breakpoint %d.u-Will stop next time breakpoint %d is reached.( usplituintustripuget_bpbynumberu IndexErroruerroru ValueErroruignoreumessageunumber(uselfuarguargsucountubpuerrucountstr((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_ignore5s(          u Pdb.do_ignorec !Csð|s›ytdƒ}Wntk r0d}YnX|jƒjƒ}|d kr—dd„tjjDƒ}|jƒx"|D]}|jd|ƒqyWndSd |kri|j d ƒ}|d|…}||d d…}yt |ƒ}Wnt k rd |}Yn%X|j ||ƒ}|j ||ƒ}|rC|j|ƒn"x|D]}|jd|ƒqJWdS|jƒ} xt| D]l}y|j|ƒ}Wn2t k rÉ}z|j|ƒWYdd}~Xq|X|j|ƒ|jd|ƒq|WdS( u=cl(ear) filename:lineno cl(ear) [bpnumber [bpnumber...]] With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). With a filename:lineno argument, clear all breaks at that line in that file. uClear all breaks? unouyuyescSsg|]}|r|‘qS(((u.0ubp((u(/opt/alt/python33/lib64/python3.3/pdb.pyu fs u Pdb.do_clear..u Deleted %sNu:iuInvalid line number (%s)(uyuyes(uinputuEOFErrorustripulowerubdbu Breakpointu bpbynumberuclear_all_breaksumessageurfinduintu ValueErroru get_breaksu clear_breakuerrorusplituget_bpbynumberuclear_bpbynumber( uselfuargureplyubplistubpuiufilenameulinenouerru numberlist((u(/opt/alt/python33/lib64/python3.3/pdb.pyudo_clearXsF            u Pdb.do_clearcCs|jƒdS(uâw(here) Print a stack trace, with the most recent frame at the bottom. An arrow indicates the "current frame", which determines the context of most commands. 'bt' is an alias for this command. N(uprint_stack_trace(uselfuarg((u(/opt/alt/python33/lib64/python3.3/pdb.pyudo_where‹su Pdb.do_wherecCs~d|ko t|jƒkns+t‚||_|j|jd|_|jj|_|j|j|jƒd|_ dS(Ni( ulenustackuAssertionErrorucurindexucurframeuf_localsucurframe_localsuprint_stack_entryuNoneulineno(uselfunumber((u(/opt/alt/python33/lib64/python3.3/pdb.pyu _select_frame•s + uPdb._select_framec Csœ|jdkr |jdƒdSyt|p/dƒ}Wn'tk r_|jd|ƒdSYnX|dkrud}ntd|j|ƒ}|j|ƒdS(u‚u(p) [count] Move the current frame count (default one) levels up in the stack trace (to an older frame). iu Oldest frameNiuInvalid frame count (%s)(ucurindexuerroruintu ValueErrorumaxu _select_frame(uselfuargucountunewframe((u(/opt/alt/python33/lib64/python3.3/pdb.pyudo_ups     u Pdb.do_upc CsÃ|jdt|jƒkr-|jdƒdSyt|p<dƒ}Wn'tk rl|jd|ƒdSYnX|dkrt|jƒd}n#tt|jƒd|j|ƒ}|j|ƒdS(u…d(own) [count] Move the current frame count (default one) levels down in the stack trace (to a newer frame). iu Newest frameNuInvalid frame count (%s)i(ucurindexulenustackuerroruintu ValueErroruminu _select_frame(uselfuargucountunewframe((u(/opt/alt/python33/lib64/python3.3/pdb.pyudo_down±s    #u Pdb.do_downc Csƒ|rfyt|ƒ}Wn'tk r?|jd|ƒdSYnX||jjkrl|jdƒdSnd}|j|j|ƒdS(uNunt(il) [lineno] Without argument, continue execution until the line with a number greater than the current one is reached. With a line number, continue execution until a line with a number greater or equal to that is reached. In both cases, also stop when the current frame returns. uError in argument: %rNu7"until" line number is smaller than current line numberi(uintu ValueErroruerrorucurframeuf_linenouNoneu set_until(uselfuargulineno((u(/opt/alt/python33/lib64/python3.3/pdb.pyudo_untilÅs   u Pdb.do_untilcCs|jƒdS(u§s(tep) Execute the current line, stop at the first possible occasion (either in a function that is called or in the current function). i(uset_step(uselfuarg((u(/opt/alt/python33/lib64/python3.3/pdb.pyudo_stepÝs u Pdb.do_stepcCs|j|jƒdS(uxn(ext) Continue execution until the next line in the current function is reached or it returns. i(uset_nextucurframe(uselfuarg((u(/opt/alt/python33/lib64/python3.3/pdb.pyudo_nextçsu Pdb.do_nextcCsW|rMddl}tjdd…}|j|ƒt_|tjdd…". If an exception is being debugged, the line where the exception was originally raised or propagated is indicated by ">>", if it differs from the current line. ulistu.u,iiuError in argument: %rNi u[EOF](ulastcmduNoneusplituintustripumaxu ValueErroruerrorulinenoucurframeuf_linenouf_codeu co_filenameuget_file_breaksu linecacheugetlinesu f_globalsu _print_linesuminulenumessageuKeyboardInterrupt(uselfuargulastufirstufilenameu breaklistulines((u(/opt/alt/python33/lib64/python3.3/pdb.pyudo_list¥s>          u Pdb.do_listcCs|jjj}|j|ƒ}yt|jƒ\}}Wn6tk ro}z|j|ƒdSWYdd}~XnX|j||||jƒdS(u\longlist | ll List the whole source code for the current function or frame. N(ucurframeuf_codeu co_filenameuget_file_breaksugetsourcelinesuIOErroruerroru _print_lines(uselfuargufilenameu breaklistulinesulinenouerr((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_longlistØs uPdb.do_longlistcCs‹y|j|ƒ}Wn dSYnXyt|ƒ\}}Wn<ttfk rv}z|j|ƒdSWYdd}~XnX|j||ƒdS(u^source expression Try to get source code for the given object and display it. N(u_getvalugetsourcelinesuIOErroru TypeErroruerroru _print_lines(uselfuarguobjulinesulinenouerr((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_sourceæs  u Pdb.do_sourcec Csù|r'|j}|jj|d ƒ}n d }}xÁt||ƒD]°\}}t|ƒjdƒ} t| ƒdkr| d7} n||krš| d7} n | d7} ||kr½| d7} n||krÖ| d7} n|j| d|jƒƒqAWd S( uPrint a range of lines.iiiu uBu->u>>u Niÿÿÿÿiÿÿÿÿ( uf_linenou tb_linenougetu enumerateustrurjustulenumessageurstrip( uselfulinesustartubreaksuframeucurrent_linenou exc_linenoulinenoulineus((u(/opt/alt/python33/lib64/python3.3/pdb.pyu _print_lines÷s           uPdb._print_linescCsòy|j|ƒ}Wn dSYnXd}y |j}Wntk rIYnX|rh|jd|jƒdSy|jj}Wntk rŒYnX|r«|jd|jƒdS|jtkrÛ|jd|j |j fƒdS|jt|ƒƒdS(u;whatis arg Print the type of the argument. Nu Function %su Method %su Class %s.%s( u_getvaluNoneu__code__u Exceptionumessageuco_nameu__func__u __class__utypeu __module__u__name__(uselfuarguvalueucode((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_whatis s.    u Pdb.do_whatiscCs–|sP|jdƒx||jj|jiƒjƒD]}|jd|ƒq2WnB|j|ƒ}||jj|jiƒ|<|jd||fƒdS(uâdisplay [expression] Display the value of the expression if it changed, each time execution stops in the current frame. Without expression, list all display expressions for the current frame. uCurrently displaying:u%s: %rudisplay %s: %rN(umessageu displayingugetucurframeuitemsu_getval_exceptu setdefault(uselfuarguitemuval((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_display/s %uPdb.do_displayc Csf|rLy|jj|jiƒ|=Wqbtk rH|jd|ƒYqbXn|jj|jdƒdS(u·undisplay [expression] Do not display the expression any more in the current frame. Without expression, clear all display expressions for the current frame. unot displaying %sN(u displayingugetucurframeuKeyErroruerrorupopuNone(uselfuarg((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_undisplayBs  uPdb.do_undisplaycs)‡fdd†|jj|jiƒDƒS(Ncs%g|]}|jˆƒr|‘qS((u startswith(u.0ue(utext(u(/opt/alt/python33/lib64/python3.3/pdb.pyu Rs u*Pdb.complete_undisplay..(u displayingugetucurframe(uselfutextulineubegidxuendidx((utextu(/opt/alt/python33/lib64/python3.3/pdb.pyucomplete_undisplayQsuPdb.complete_undisplaycCs9|jjjƒ}|j|jƒtjdd|ƒdS(u interact Start an interactive interpreter whose global namespace contains all the (global and local) names found in the current scope. u *interactive*ulocalN(ucurframeu f_globalsucopyuupdateucurframe_localsucodeuinteract(uselfuarguns((u(/opt/alt/python33/lib64/python3.3/pdb.pyu do_interactUsuPdb.do_interactcCsÜ|jƒ}t|ƒdkrft|jjƒƒ}x,|D]$}|jd||j|fƒq:WdS|d|jkr´t|ƒdkr´|jd|d|j|dfƒn$dj|dd…ƒ|j|d