+
   _MG.Z                      ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI t!^ RI"H#t#H$t$H%t% ^ RIH&t& ^ RI'H(t(  ! R R])4      t*. RXOt+R
 t,R t-R t. ! R R]/4      t0 ! R R4      t1 ! R R]14      t2 ! R R]14      t3 ! R R]14      t4 ! R R]Pj                  4      t6Rt7Rs8R t9R t: ! R R]Pv                  ]Px                  4      t=]>e   . R	NRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR.NRNR/NR0NR1NR2NR3NR4NR5NR6NR7NR8NR9NR:NR;NR<NR=Nt?]? F9  t@]>]A! ]=R>]@,           4      P|                  P                  4       R?,           ,          t>K;  	  ]>]=P                  P|                  ,          t>A?A@RYR@ ltDRYRA ltERB tFRC tGRDRR(R/RE ltHRDRR(R/RF ltI ! RG RH]=4      tJ ! RI RJ4      tKRK tLRZRL ltMR[RM ltNRN tORO tPRPtQRQ tRRR tSRStTRT tURU tVRV tW]XRW8X  d   ^ RIYtY]YP                  ! 4        R# R# )\    N)	ExitStackclosingcontextmanager)CodeType)
deprecatedc                       ] tR t^ktRtR# )Restart N)__name__
__module____qualname____firstlineno____static_attributes__r
       /usr/lib/python3.14/pdb.pyr	   r	   k   s    r   r	   runPdbhelpc                    R p\         P                  ! V 4       FX  pVeP   VP                  R8X  d?   VP                  P                  e   VP                  P                  u # V P
                  u # TpKZ  	  V P
                  # )NRESUME)disget_instructionsopname	positionslinenoco_firstlineno)codeprevinstrs   &  r   find_first_executable_liner    s   sn     D%%d+x 7%%1---&&& , r   c                   a  \         P                  ! R \         P                  ! S 4      ,          4      p \        P                  ! V4      pRp^ pT;_uu_ 4        \        V^R7       F  w  rxVP                  V4      '       d   YxrVMV'       d	   WX,          pV'       g   K9   \        WQR4      p	\        T 3R lT	P                   4       4      p
\!        T
4      pS YT,           ^,
          3u uuRRR4       # 	  RRR4       R#   \
         dK    \        P                  ! T4      pT'       g    R# \        P                  ! RP                  T4      4      p EL
i ; i  \         d     EK  i ; i  + '       g   i     R# ; i)zdef\s+%s(\s*\[.+\])?\s*[(]N )startexecc              3   ~   <"   T F2  p\        V\        4      '       g   K  VP                  S8X  g   K.  Vx  K4  	  R # 5iN)
isinstancer   co_name).0cfuncnames   & r   	<genexpr> find_function.<locals>.<genexpr>   s4       S>a *1h 7 !"<=II<Q !">s   ==
=)recompileescapetokenizeopenOSError	linecachegetlinesioStringIOjoin	enumeratematchSyntaxErrornext	co_constsr    )r+   filenamecrefplinesfuncdef	funcstartr   liner   funccodelineno_offsets   f&          r   find_functionrG      s3   
**2RYYx5HH
IC)]]8$ GI	%b2LFyy%+7w"7f=D    S4>>  S S :8 D}+Dq+HHH! 
2 
" 3  )""8,[[(	)$ #  
" sS   D  4E+E+ E,=E+4E+ (E,%EEE(	#E+'E(	(E++E<	c                     \        \        P                  ! V 4      4      pVP                  4        V F  w  r4W8  g   K  Vu # 	  ^ # )r   )listr   findlinestartsreverse)r   lasti
linestartsir   s   &&   r   lasti2linenorO      s>    c((./J	:M   r   c                   &   a  ] tR t^t o R tRtV tR# )_rstrc                    V # r&   r
   selfs   &r   __repr___rstr.__repr__   s    r   r
   N)r   r   r   r   rU   r   __classdictcell____classdict__s   @r   rQ   rQ      s      r   rQ   c                   ,   a  ] tR t^t o V 3R ltRtV tR# )_ExecutableTargetc                N   < V ^8  d   Qh/ S[ ;R&   S[S[ ,          ;R&   S[;R&   # )   r>   r   	namespace)strr   dict)formatrY   s   "r   __annotate___ExecutableTarget.__annotate__   s*     M 
S.  O r   r
   N)r   r   r   r   __annotate_func__r   rW   rX   s   @r   r[   r[      s      r   r[   c                   |   a  ] tR t^t o R t]R 4       t]R 4       tR t]	R 4       t
]	R 4       t]	R 4       tRtV tR	# )
_ScriptTargetc                   V P                  V4       V P                  V4      V n        \        P                  P
                  '       g=   \        P                  P                  V P                  4      \        P                  ^ &   R# R# r   N)	_check_safe_realpath_targetsysflags	safe_pathospathdirname)rT   targets   &&r   __init___ScriptTarget.__init__   sU    F**62 yy"""''//$,,7CHHQK #r   c                2   \         P                  P                  V 4      '       g&   \        R V  R24       \        P
                  ! ^4       \         P                  P                  V 4      '       d(   \        R V  R24       \        P
                  ! ^4       R# R# )zError: z does not existz is a directoryN)ro   rp   existsprintrl   exitisdir)rr   s   &r   ri   _ScriptTarget._check   sg    
 ww~~f%%GF8?34HHQK77==  GF8?34HHQK !r   c                    \         P                  P                  V 4      p\         P                  P                  V4      '       d   V# T # r&   )ro   rp   realpathrv   )rp   r|   s   & r   rj   _ScriptTarget._safe_realpath   s5     77##D)77>>(33x==r   c                    V P                   # r&   rk   rS   s   &r   rU   _ScriptTarget.__repr__       ||r   c                    V P                   # r&   r   rS   s   &r   r>   _ScriptTarget.filename   s    ||r   c                    \         P                  ! V P                  4      ;_uu_ 4       pR VP                  4       : RV P                  : R2uuRRR4       #   + '       g   i     R# ; i)zexec(compile(z, z
, 'exec'))N)r6   	open_coderk   read)rT   r@   s   & r   r   _ScriptTarget.code   sE     \\$,,''2"2779-r$,,1AL ('''s   #AA(	c                <    \        R V P                  \        RR7      # )__main__N)r   __file____builtins____spec__)r`   rk   r   rS   s   &r   r^   _ScriptTarget.namespace   s    \\%	
 	
r   r   N)r   r   r   r   rs   staticmethodri   rj   rU   propertyr>   r   r^   r   rW   rX   s   @r   rf   rf      su     8 	 	 	> 	>   M M
 
 
r   rf   c                   \   a  ] tR t^t o R tR t]R 4       t]R 4       t]R 4       t	Rt
V tR# )_ModuleTargetc                V   Wn         ^ RIp VP                  V P                   4      w  q0n        V n        R#   \
         d0   p\        RT 24       \        P                  ! ^4        Rp?R# Rp?i\         d0    \        P                  ! 4        \        P                  ! ^4        R# i ; ir   NzImportError: )rk   runpy_get_module_details_spec_codeImportErrorrw   rl   rx   	Exception	traceback	print_excrT   rr   r   _es   &&   r   rs   _ModuleTarget.__init__   sw    	(-(A(A$,,(O%Az4: 	M!%&HHQKK 	!HHQK	s!   (6 B($A++B(8,B('B(c                    V P                   # r&   r   rS   s   &r   rU   _ModuleTarget.__repr__   r   r   c                .    V P                   P                  # r&   r   co_filenamerS   s   &r   r>   _ModuleTarget.filename      zz%%%r   c                    V P                   # r&   r   rS   s   &r   r   _ModuleTarget.code      zzr   c           	        \        R \        P                  P                  \        P                  P	                  V P
                  4      4      V P                  P                  V P                  P                  V P                  \        R7      # r   )r   r   __package__
__loader__r   r   
r`   ro   rp   normcaseabspathr>   r   parentloaderr   rS   s   &r   r^   _ModuleTarget.namespace
  Y    WW%%bggoodmm&DE

))zz((ZZ%
 	
r   r   r   rk   Nr   r   r   r   rs   rU   r   r>   r   r^   r   rW   rX   s   @r   r   r      sK      & &   
 
r   r   c                   \   a  ] tR tRt o R tR t]R 4       t]R 4       t]R 4       t	Rt
V tR# )	
_ZipTargeti  c                   ^ RI p\        P                  P                  V4      V n        \
        P                  P                  ^ V P                  4        VP                  4       w  q0n        V n	        R#   \         d0   p\        RT 24       \
        P                  ! ^4        Rp?R# Rp?i\         d0    \        P                  ! 4        \
        P                  ! ^4        R# i ; ir   )r   ro   rp   r|   rk   rl   insert_get_main_module_detailsr   r   r   rw   rx   r   r   r   r   s   &&   r   rs   _ZipTarget.__init__  s    ww''/4<<(	(-(F(F(H%Az4: 	M!%&HHQKK 	!HHQK	s$   A3 3C%>$B((C%5,C%$C%c                    V P                   # r&   r   rS   s   &r   rU   _ZipTarget.__repr__%  r   r   c                .    V P                   P                  # r&   r   rS   s   &r   r>   _ZipTarget.filename(  r   r   c                    V P                   # r&   r   rS   s   &r   r   _ZipTarget.code,  r   r   c           	        \        R \        P                  P                  \        P                  P	                  V P
                  4      4      V P                  P                  V P                  P                  V P                  \        R7      # r   r   rS   s   &r   r^   _ZipTarget.namespace0  r   r   r   Nr   rX   s   @r   r   r     sK      & &   
 
r   r   c                   8   a a ] tR tRt oV 3R ltR tRtVtV ;t# )_PdbInteractiveConsolei<  c                6   < W n         \        SV `	  VR R7       R# )T)locals
local_exitN)_messagesuperrs   )rT   nsmessage	__class__s   &&&r   rs   _PdbInteractiveConsole.__init__=  s    t4r   c                ,    V P                  VR R7       R# )r"   endNr   )rT   datas   &&r   write_PdbInteractiveConsole.writeA  s    d#r   r   )	r   r   r   r   rs   r   r   rW   __classcell__r   rY   s   @@r   r   r   <  s     5$ $r   r   z
-> settracec                 <    V R9  d   \        RV ,          4      hV sR# )r   zInvalid backend: %sN)r   
monitoring)
ValueError_default_backend)backends   &r   set_default_backendr   R  s$     00.899r   c                      \         # r&   )r   r
   r   r   get_default_backendr   Z  s    r   c                   F  a a ] tR tRt oRtRt/ tRtRwR ltRxRR/V 3R lllt	RxRR/R llt
R tR	 tR
 tR t]]! R4      R 4       4       t]P$                  ]! R4      R 4       4       tR tR t]tR tR tR tR tR tR tR tR t]R 4       tR t R t!R t"]R 4       t#R t$R  t%R! t&R" t'R# t(R$ t)R% t*R& t+R' t,RyR( lt-R) t.R* t/]R+ 4       t0V 3R, lt1R- t2R. t3R/ t4R0 t5R1 t6R2 t7]R3 4       t8R4 t9R5 t:R6 t;R7 t<]3t=RzR8 lt>R9 t?]>t@]2tA]2tBR: tC]2tDR; tERxR< ltFR= tG]3tHR> tI]3tJR? tK]3tLR@ tM]3tNRA tORB tP]PtQ]2tR]2tSRC tT]TtU]TtVRD tWRE tXRF tY]YtZRG t[][t\RH t]]]t^RI t_]_t`RJ ta]atbRK tc]ctdRL te]etfRM tg]g;thtiRN tj]jtkRO tlRP tm]4tnRQ to]otp]otqRR trRS ts]sttRT tu]utvRU twRxRV ltxRW tyRX tzRY t{RZ t|R[ t}]4t~]4t]4tR\ t]tR] t]tR^ t]4tR{R_ ltR` t]4tRa t]4tRb tRc tRd tRe tRf tRg t. R|OtRxRh lt]3Ri ltRj t]tRk tRl tRm tV3Rn lRo ltV3Rp lRq ltRr tRs tRzRt ltRu tRvtVtV ;t# )}r   i_  Ni  c
                   \         P                  P                  YV'       d   TM	\        4       R 7       \        P
                  P                  WW#4       \        P                  ! R4       V'       d   ^ V n        RV n	        / V n
        / V n        RV n        RV n        / V n        Wpn        T	;'       d0    \         P"                  ! T;'       g    \        P$                  R7      V n         ^ RIp
V
P+                  R4       RV n        WPn        \        P
                  P2                  R,           V n        . V n        V'       d    \7        \8        P:                  P=                  R	4      R
R7      ;_uu_ 4       pV P4                  P?                  V4       RRR4        \7        RR
R7      ;_uu_ 4       pT P4                  P?                  T4       RRR4       / V n!        RV n"        RV n#        RV n$        RV n%        \M        4       V n'        ^ V n(        RV n)        R#   \,         d     EL#i ; i  + '       g   i     L; i  \@         d     Li ; i  + '       g   i     L; i  \@         d     Li ; i))skipr   zpdb.Pdbz(Pdb) r"   FfileNz 	
`@#%^&*()=+[{]}\|;:'",<>?z=.[](),"'+-*/%@&|<>~^z~/.pdbrczutf-8)encodingz.pdbrc)*bdbBdbrs   r   cmdCmdrl   audituse_rawinputpromptaliases
displaying
mainpyfile_wait_for_mainpyfile	tb_linenomode	_colorizecan_colorizestdoutcolorizereadlineset_completer_delimsr   allow_kbdintnosigint
identcharsrcLinesr2   ro   rp   
expanduserextendr3   commandscommands_definingcommands_bnumasync_shim_frameasync_awaitabletuple_chained_exceptions_chained_exception_index_current_task)rT   completekeystdinr   r   r   readrcr   r   r   r   rcFiles   &&&&&&&&&&  r   rs   Pdb.__init__j  s   W'J]J_`E:		) !D$)!	 VVY%;%;AUAU3::%V	))*LM "  '',,/GG "'',,Z87KKvLL''/ L(W55LL''/ 6
 !&! !%##(7 ()%!G  		 LK  65 sr   (H  2H7 2H$H7 I ,II H! H!$H4	/H7 4H7 7III	I I I)(I)r  c                  < V \         n        Vf    \        P                  ! 4       P                  pVe   V P
                  P                  V4       \        SV `!  V4       R # r&   )	r   _last_pdb_instancerl   	_getframef_backr   r  r   	set_trace)rT   framer  r   s   &&$r   r  Pdb.set_trace  sF    !%=MMO**ELL)% r   c               4  "   V P                   e   R # Vf    \        P                  ! 4       P                  pV P	                  WR7       Wn        V P                  4        \        P                  ! 4       V n        R V n          R V n         V P                  VRR 4       V P                   el    V P                  '       dC   V P                  V4      ;_uu_ 4        V P                  4        R R R 4       V P                  4        V P                   G R j  xL
  K   R T n        T P                  f&   T P                   R8X  d   T P                  '       g   R # T P                  4        R #   + '       g   i     L; i Lf  \         d    T P                  4         EK  i ; i5i)Nr  opcode)r  rl   r  r  r  	stopframe
stop_tracer  trace_dispatchbreaksset_enterframeset_continuestart_tracer   
_error_excreturnframe
stoplineno)rT   r  r  s   &&$r   set_trace_asyncPdb.set_trace_async  sA    +=MMO**E
 	u0 	 ###'D  x6##/&{{{!0077 --/ 8 ((*....  $ #2(=dkkk % 87 /  &OO%%&sZ   B&F)E5 ;E5 E %'E5 E3E5 :FF E0	+	E5 5FFFFc                    V P                   '       d   \        hV P                  R 4       V P                  4        V P	                  V4       R# )z-
Program interrupted. (Use 'cont' to resume).N)r   KeyboardInterruptr   set_stepr  )rT   signumr  s   &&&r   sigint_handlerPdb.sigint_handler  s6    ##EFur   c                d    \         P                  P                  V 4       V P                  4        R # r&   )r   r   resetforgetrS   s   &r   r.  	Pdb.reset  s    dr   c                   R V n         . V n        ^ V n        \        V R4      '       d9   V P                  '       d'   V P                  P
                  P                  RR 4       R V n        V P                  P                  4        R # )Ncurframe__pdb_convenience_variables)	r   stackcurindexhasattrr2  	f_globalspopr   clearrS   s   &r   r/  
Pdb.forget  s^    
4$$MM##''(EtLr   c                   V P                  4        V P                  W4      w  V n        V n        V'       dQ   \	        VP
                  P                  VP                  4      pW0P                  VP
                  &   VP                  pKX  V P                  V P                  ,          ^ ,          V n
        V P                  V P                  RV P                  4       V P                  '       d(   V P                  V P                  RV P                  4       V P                  V P                  4       V P                  '       d9   V P                  V P                  RV P                  V P                  ,          4       V P                   '       dj   V P                    Uu. uFD  pVP#                  4       '       g   K  VP#                  4       P%                  R4      '       d   KB  VNKF  	  upV n        . V n        R# R# u upi )r   _frame
_asynctask
_exception#N)r/  	get_stackr4  r5  rO   tb_framef_codetb_lastir   tb_nextr2  set_convenience_variabler
  _save_initial_file_mtimer  r	  r   strip
startswithcmdqueue)rT   ftbr   rD   s   &&&  r   setup	Pdb.setup  sc   $(NN1$9!
DM ""++"4"4bkkBF*0NN2;;'B

4==1!4%%dmmXt}}M))$--tGYGYZ%%dmm4###))(()F)FG <<<!%!-::< (,

(?(?(D DM DL s   G22"G2G2zPThe frame locals reference is no longer cached. Use 'curframe.f_locals' instead.c                .    V P                   P                  # r&   )r2  f_localsrS   s   &r   curframe_localsPdb.curframe_locals  s     }}%%%r   zgSetting 'curframe_locals' no longer has any effect. Update the contents of 'curframe.f_locals' instead.c                    R # r&   r
   )rT   values   &&r   rP  rQ    s     	r   c                    V P                   '       d   R # V P                  V4      '       d&   V P                  R4       V P                  VR 4       R # R # )Nz--Call--)r   	stop_herer   interaction)rT   r  argument_lists   &&&r   	user_callPdb.user_call  sC     $$$>>%  LL$UD) !r   c                N   V P                   '       d>   V P                  V P                  VP                  P                  4      8w  d   R # RV n         V P
                  '       d!   VP                  f   V P                  4        R # V P                  V4       V P                  VR 4       R # )NF)
r   r   canonicrB  r   trace_opcodesf_linenoset_stepinstrbp_commandsrV  )rT   r  s   &&r   	user_linePdb.user_line'  s}    $$$4<<0H0H#II(-D% ~~%""$%r   c                J   \        V R R4      '       d   V P                  V P                  9   ds   V P                  p^ V n        V P                  V,           F  pV P                  P	                  V4       K   	  V P                  P	                  RV P
                   24       R# R# R# )	currentbpFz_pdbcmd_restore_lastcmd N)getattrrc  r  rI  appendlastcmd)rT   r  rc  rD   s   &&  r   r_  Pdb.bp_commands9  s     4e,,~~.IDNi00$$T* 1MM  #;DLL>!JK / -r   c                    V P                   '       d   R # W!P                  R&   V P                  VRV4       V P                  R4       V P	                  VR 4       R # )N
__return___retvalz
--Return--)r   rO  rE  r   rV  )rT   r  return_values   &&&r   user_returnPdb.user_returnH  sK    $$$'3|$%%eYE\"%r   c                   V P                   '       d   R # Vw  r4pW43VP                  R&   V P                  VRV4       V'       g   V\        J d   RMRpV P	                  V: V P                  V4      : 24       V P                  W4       R # )N__exception__r>  z	Internal r"   )r   rO  rE  StopIterationr   _format_excrV  )rT   r  exc_infoexc_type	exc_valueexc_tracebackprefixs   &&&    r   user_exceptionPdb.user_exceptionQ  s     $$$-5*]*2*='%%e\9E &3(0M(A HJ 	vt'7'7	'BCD.r   c                      R V n         V P                  4        RV n         R#   \         d    T P                  R4        KA  i ; i)TFz--KeyboardInterrupt--N)r   cmdloopr(  r   rS   s   &r   _cmdloopPdb._cmdloope  sD    6 %)!$)!$ 6456s   # AAc                    V'       db   VP                   P                  pW P                  9  d.    \        P                  P                  V4      V P                  V&   VP                  pKi  R #   \         d     Li ; ir&   )rB  r   _file_mtime_tablero   rp   getmtimer   r  )rT   r  r>   s   && r   rF  Pdb._save_initial_file_mtimeq  sj     ||//H55579ww7G7G7QD**84 LLE 
 ! s   ,A, ,A:9A:c                F    V P                   P                  P                  p\        P                  P                  V4      pYP                  9   d?   Y P                  T,          8w  d&   T P                  RT R24       Y P                  T&   R # R # R #   \         d     R # i ; i)Nz*** WARNING: file 'z;' was edited, running stale code until the program is rerun)	r2  rB  r   ro   rp   r  r   r~  r   )rT   r>   mtimes   &  r   _validate_file_mtimePdb._validate_file_mtime}  s    	}}++77HGG$$X.E ...++H55LL.xj 9I I J/4""8, 6 /  		s   ?B B B c                V   V P                   P                  V P                  4      pV'       d|   VP                  4        Fe  w  r#V P	                  V4      pWCJg   K  WC8w  g   K%  WAV&   V P                  R V: RV P                  WB4      : RV P                  W24      : R24       Kg  	  R# R# )display : z  [old: ]N)r   getr2  items_getval_exceptr   
_safe_repr)rT   r   exproldvaluenewvalues   &    r   _show_displayPdb._show_display  s    __((7
","2"2"4..t4 +0D'/t$LL"&(G"&//("A"C D #5 r   c                   . p\        V\        4      '       d   VP                  TrCVe   WB9   d   MVP                  V4       VP                  e   VP                  pM,VP
                  e   VP                  '       g   VP
                  p\        V4      V P                  8  g   K  V P                  RV P                   R24       MMTp\        \        V4      4      V3# )Nz
More than zQ chained exceptions found, not all exceptionswill be browsable with `exceptions`.)r'   BaseException__traceback__re  	__cause____context____suppress_context__lenMAX_CHAINED_EXCEPTION_DEPTHr   r  reversed)rT   	tb_or_exc_exceptionsr   currents   &&   r   _get_tb_and_exceptionsPdb._get_tb_and_exceptions  s     i//!*!8!8)w%)""7+$$0%//G''3G<X<X<X%11G{#t'G'GGLL$T%E%E$F??
 # && "IXk*+Y66r   c              #     "    Wn         \        V4      ^,
          V n        Rx  \        4       V n         ^ V n        R#   \        4       T n         ^ T n        i ; i5i)   N)r  r  r	  r  )rT   
exceptionss   &&r   _hold_exceptionsPdb._hold_exceptions  sM     	.'1$,/
Oa,?D) (-wD$,-D) (-wD$,-D)s   A!= AAAc                Z     \         P                  ! 4       pV#   \         d    R p T# i ; ir&   )asynciocurrent_taskRuntimeError)rT   tasks   & r   _get_asyncio_taskPdb._get_asyncio_task  s7    	'')D   	D	s    **c                   \         P                  '       d@    \        P                  ! \        P                  \         P                  4       R \         n        V P                  4       V n        V P                  V4      w  r4\        V\        4      '       d   V P                  V4      ;_uu_ 4        V P                  W4       V P                  P                  R4       V P                  4        V P                  '       d3   V P                  R,          R8X  d   V P                  P                  4        V P!                  4        R R R 4       R #   \         d     Li ; i  + '       g   i     R # ; i)N_pdbcmd_print_frame_statusr  )r   _previous_sigint_handlersignalSIGINTr   r  r
  r  r'   r  r  rL  rI  re  r{  r8  r/  )rT   r  r  r  rK  s   &&&  r   rV  Pdb.interaction  s    '''4fmmS-I-IJ 04,!335"&"="=i"Hi//""#677JJu! MM  !=>MMO}}}r!26R!R!!#KKM 87   877s   3E -BEEEE*	c                F    Ve   V P                  \        V4      4       R # R # r&   )r   reprrT   objs   &&r   displayhookPdb.displayhook  s    
 ?LLc# r   c              #    a"    ^ RI oT3R lpT P                  p T P                  T n        SP	                  T4       Rx  SP	                  4        Y n        R#   \         d	    Rx   R# i ; i  SP	                  4        Y n        i ; i5i)r   Nc                  r  < SP                  4       p SP                  V 4      pV'       d   VP                  4       '       d   R # VP                  R4      p\	        V4      \	        VP                  4       4      ,
          pVP                  R4      '       d
   V^,          pSP                  RV,          4       R # R # )N
: )get_current_history_lengthget_history_itemisspacerstripr  lstripendswithinsert_text)
last_index	last_lineindentr   s      r   input_auto_indent6Pdb._enable_multiline_input.<locals>.input_auto_indent  s    !<<>J 11*=I$$&&%,,V4	Y#i.>.>.@*AA%%c**aKF$$S6\2 r   )r   r   completenamescomplete_multiline_namesset_startup_hook)rT   r  r  r   s   &  @r   _enable_multiline_inputPdb._enable_multiline_input   s     	
	3 **	/!%!>!>D%%&78%%'!.5  		0 %%'!.s>   BA B&A0 BA-)B,A--B0BBc                  a
 \        VR R4      p\        ;QJ d&    R VP                   4       F  '       g   K   RM	  RM! R VP                   4       4      '       g   R# \        V4      o
RRR/ /S
R&    \        VR R	4       R
V,           pR\
        P                  ! VR4      ,           R,           R,           R,           pRRP                  R S
 4       4      ,           R,           R,           RP                  R S
 4       4      ,           R,           \
        P                  ! VR4      ,           R,           R,           p/ p \        V/ V4       TR,          ! 4       p\        ;QJ d!    . T
3R lTP                   4       F  NK  	  5M! T
3R lTP                   4       4      p \        YBS
TR7       S
R,          pTR,          P                  R4       TP                  TR,          4       TR,          p	T	e   T P                  \        T	4      4       R#   \         d     ELi ; i  \         d     R# i ; i  \         d     R# i ; i)<string>r$   c              3   B   "   T F  p\        V\        4      x  K  	  R # 5ir&   )r'   r   )r)   consts   & r   r,   'Pdb._exec_in_closure.<locals>.<genexpr>,  s     KN5:eX..N   TFresultN
write_back__pdb_eval__evalz__pdb_eval__['result'] = ztry:
  
z	finally:
z'  __pdb_eval__['write_back'] = locals()zdef __pdb_outer():
c              3   .   "   T F  pR V R2x  K  	  R# 5i)r  z = NoneNr
   r)   vars   & r   r,   r  N  s     (Rks2cU'):ks   z  def __pdb_scope():
c              3   ,   "   T F
  pR V 2x  K  	  R# 5i)z    nonlocal Nr
   r  s   & r   r,   r  P  s     (V+3=)>+s       z  return __pdb_scope.__code____pdb_outerc              3   n   <"   T F*  p\         P                  ! SP                  V4      4      x  K,  	  R # 5ir&   )typesCellTyper  )r)   r  locals_copys   & r   r,   r  _  s(     WFVsenn[__S%9::FVs   25)closure)r/   anyr=   r`   r;   textwrapr  r8   r$   r   r  co_freevarsr8  updater   r  )rT   sourceglobalsr   r   source_with_closurer   cellspdb_evaleval_resultr  s   &&&&      @r   _exec_in_closurePdb._exec_in_closure   s.    vz62sKDNNKsssKDNNKKK 6l d"'
N#	:FJ/ 169F //&$/0267 <<  6#yy(Rk(RR SUY Z7 8  $yy(V+(VV W Z^ ^  (vv>	 ? BF	 F
  ? ? 	$b"- - "WdFVFVWWdFVFVWW	U;
 ~. 	"">2 	h|,-x("LLk*+o  		@  		  		s6   4H ;H H1 HHH.-H.1I ?I c                    R \         P                  ! VR4      ,           R,           R,           pW#,          pW5R&   \        WE4       VR,          ! 4       V n        R# )zasync def __pdb_await():
r  r  z!    __pdb_locals.update(locals())__pdb_locals__pdb_awaitN)r  r  r$   r  )rT   r  r  r   source_asyncr   s   &&&&  r   _exec_awaitPdb._exec_awaitt  sY     )OOFF+,.23/0 	
 #>\!-02r   c                   TpR pRp \         P                  ! VR,           RR4      ;pEfW   V P                  4       ;_uu_ 4        TpRp\         P                  ! VRR4      ;pEf   V P                  '       d    \	        V4      pMV P                  P                  V4       V P                  P                  4        V P                  P                  4       p\        V4      '       gI   RV n        V P                  P                  R4       V P                  P                  4        R
uuRRR4       # VP                  R4      pVP!                  4       '       d   VR,          pEK  VRV,           ,          pEK*  W n        RRR4       M WBV3#   \
        \        3 d"    RT n        \        R4       R
u uuRRR4       # i ; i  + '       g   i     LI; i  \"         d-   pT P$                  e   TP&                  R8X  d   R	p Rp?L}h Rp?ii ; i)FNr  <stdin>singlez...   r"   r  z'await' outside functionT)NNF)codeopcompile_commandr  r   inputEOFErrorr(  rf  rw   r   r   flushr  r   r  r  r  r;   r  msg)rT   rD   bufferis_await_coder   continue_promptr   s   &&     r   
_read_codePdb._read_code  s   '	..td{IxPPY1133!F&.O#)#9#9&)X#VV4_,,,9',_'= !KK--o> KK--/#'::#6#6#8D#&t99/1 $ 1 1$ 7 $ 1 1 3'8' 43* (,{{6':<<>>"dNF"dTk1F#)L7 43 ZP ]**? %-.?#@ 9/1 %d'8 8 439 438  	 %%1EE77 $	sx   <G 3F<9FBF<"
G -&F<%F<9G %F9,F<-
G 8F99F<<G	G G H!H HHc                @   VR ,          R8X  d   VR,          P                  4       pV P                  P                  pV P                  P                  p V P	                  V4      w  rEpVf   R# \
        P                  p\
        P                  p\
        P                  p	 V P                  \
        n        V P                  \
        n        V P                  \
        n        V'       d7   V P                  WSV4        V\
        n        V\
        n        V	\
        n        R# V P                  WSV4      '       g   \        WCV4       V\
        n        V\
        n        V	\
        n        R#   T\
        n        T\
        n        T	\
        n        i ; i   T P                  4         R# ; i):Nr  N!r  NNNT)rG  r2  rO  r7  r  rl   r   r  r  r  r  r$   r"  )
rT   rD   r   r  r   r   r  save_stdout
save_stdinsave_displayhooks
   &&        r   defaultPdb.default  s(   8s?48>>#3D''--))	*.//$*?'D-~**KJ"3 JJ	![[
"&"2"2 $$Vf=
 )
&	"2  00&IITF3(
&	"2 )
&	"2	OOs=   F -0F AE" %E" 8!F $E" ?!F "#FF Fc                Z   R V9  d   V# R;r#. p \         P                  ! \        P                  ! V4      P                  4       Fj  pVw  rgrp
V\
        P                  8X  d   VR 8X  d   Yr2K)  W8X  g   K1  V\
        P                  8X  g   KH  VP                  V^,          V	^,          V34       Kl  	  T'       g   T# ^ p. pT F&  w  rpTP                  YT RT R2,           4       T	pK(  	  TP                  YR 4       RP                  T4      #   \         P                   d    Tu # i ; i)$z__pdb_convenience_variables["z"]Nr"   )r  r  )r1   generate_tokensr6   r7   r   tokenOPNAMEre  
TokenErrorr8   )rT   rD   dollar_start
dollar_endreplace_variablest
token_typetoken_stringr#   r   r   last_endline_piecesnames   &&            r   _replace_convenience_variables"Pdb._replace_convenience_variables  s&   
 d?K$,,		--bkk$.?.H.HI:;7
%a)lc.A/4*(Z5::-E%,,l1os1v|-TU J !K 1EtU38UVZU[[]6^^_H !2 	4	?+ww{## "" 	K	s   A D 5D &D D*)D*c                p   VP                  4       '       g   V# VP                  4       pV^ ,          V P                  9   d   V P                  V^ ,          ,          p\        ^^
4       F  pRV 2V9   dM   V\	        V4      8  d    V P                  RV^ ,           R24        R# VP                  RV 2W#,          4      pKY  RV9  g   Kb  V\	        V4      8  d    V P                  RV^ ,           R24        R#  M	  VP                  RRP                  VR,          4      4      pVP                  4       pEK  V^ ,          R	8w  da   VP                  R
4      pV^ 8  dI   W^,           R P                  4       pV P                  P                  ^ V4       VRV P                  4       pV P                  V4      pV# )r   %z Not enough arguments for alias ''r  %*zToo many arguments for alias 'r  r  aliasz;;N)rG  splitr   ranger  errorreplacer8   findr  rI  r   r  r  )rT   rD   argsidxmarkerr<   s   &&    r   precmd
Pdb.precmd  sr   zz||Kzz|1g%<<Q(DQ|se9$c$i'

%Ed1gYa#PQ"<<!C5	49=D%SY

%CDG9A#NO" $ <<chhtBx&89D::<D 7gYYt_F{1HI--/$$Q-GV}++- 2248r   c                    V P                   '       gm   VP                  R 4      '       d7   V P                  V4      w  r#p\        W4      '       d   \	        W4      ! V4      # \
        P                  P                  W4      # V P                  V4      # )_pdbcmd)	r  rH  	parseliner6  rd  r   r   onecmdhandle_command_def)rT   rD   commandargs   &&  r   r1  
Pdb.onecmd  sq     %%%y))%)^^D%9"d4))"41#6677>>$--**400r   c                   V P                  V4      w  r#pV'       g   R # VR8X  d   R# VR8X  d   V P                  R4       R# V P                  V P                  ,          pVR8X  d   VP	                  R4       R # V'       d!   VP	                  VR,           V,           4       MVP	                  V4        \        V RV,           4      pVP                  V P                  9   d   R# R #   \         d    T P                  p L8i ; i)	Fr   TEOFr"   silent_pdbcmd_silence_frame_statusr  do_)
r0  r   r  r  re  rd  AttributeErrorr  r   commands_resuming)rT   rD   r   r4  cmdlistfuncs   &&    r   r2  Pdb.handle_command_def$  s    -$%<E\LL-- 2 23(?NN9:NN3s73;'NN3	 4-D ==D222  	 <<D	 s   3C% %C?>C?c                    V P                   '       d]   \        \        P                  P	                  V4      4      p\        P                  P                  WR R7      w  r4RP                  V4      pV# )T)colorsforce_colorr"   )r   rI   _pyreplutils
gen_colorsdisp_strr8   )rT   r   rA  charsr   s   &&   r   _colorize_codePdb._colorize_code@  sQ    ==='--22489F}}--dt-THE775>Dr   c                4    \        WV P                  R 7       R# ))r   r   Nrw   r   rT   r  r   s   &&&r   r   Pdb.messageI  s    c-r   c                4    \        R WP                  R7       R# )***r   NrK  rT   r  s   &&r   r&  	Pdb.errorL  s    eS{{+r   c                p    R VP                   9  d   / VP                   R &   W1P                   R ,          V&   R# )r3  N)r7  )rT   r  r  rS  s   &&&&r   rE  Pdb.set_convenience_variableQ  s/    (?=?EOO9:?D56t<r   c                
   \        V R 4      '       g?    ^ RIpVP                  4       p^ RIHp W0n        VP                  V4       V P
                  # V P
                  #   \         d    ^ RIHp Y0n         T P
                  # i ; i)_rlcompleterN)	Completer)r6  r   get_completerrlcompleterrV  rU  set_completerr   )rT   r   prev_completerrV  s   &   r   rX  Pdb.rlcompleterY  s     t^,,7 "*!7!7!91$-!&&~6   t     .1$-!    .s   A BBc                  < \         SV `  WW44      pV P                   F-  pVP                  V4      '       g   K  VP	                  V4       K/  	  V'       d   V# V P                  WW44      pV'       d   V# V P                  WW44      # r&   )r   r  r   rH  re  _complete_expressioncompletedefault)	rT   textrD   begidxendidxr  r#  expressionsr   s	   &&&&&   r   r  Pdb.completenamesr  sy     7(VD\\E%%& " O33DOK""''FCCr   c                ^   VP                  4       P                  R4      '       d   . #  V P                  WW44      p\        P                  ! \        P
                  ! V4      R,           4      pV F  p\        P                  P                  V4      '       d   VP                  VR,           4       KB  \        P                  P                  V4      '       g   Ki  VP                  4       P                  R4      '       g   K  VP                  VR ,           4       K  	  V#   \         d    . p Li ; i)r  */)r  ,).pyz.pyw)rG  r  r]  r   globr0   ro   rp   ry   re  isfilelower)rT   r_  rD   r`  ra  retglobsfns   &&&&&   r   _complete_locationPdb._complete_location  s    ::<  ,,I	++DGC 		$++d+c12Bww}}R  

28$##
(;(;O(L(L

28$	 
 
  	C	s   D D,+D,c                    \        \        P                  P                  4       UUu. uF8  w  rVVf   K  \	        V4      P                  V4      '       g   K-  \	        V4      NK:  	  upp# u uppi r&   )r9   r   
Breakpoint
bpbynumberr_   rH  )rT   r_  rD   r`  ra  rN   bps   &&&&&  r   _complete_bpnumberPdb._complete_bpnumber  sZ     %.cnn.G.G$H ?$H51 &)!f&7&7&= A$H ? 	? ?s   A)A)A)c                   V P                   '       g   . # / V P                   P                  CV P                   P                  CpR V9   d   VP                  R 4      p V^ ,          P	                  R4      '       d4   V P                   P                  R,          V^ ,          R,          ,          pMWV^ ,          ,          pV^R  F  p\        Wx4      pK  	  R P                  TRR 4      R ,           p	\        T4       U
u. uF*  qP	                  TR,          4      '       g   K"  Y,           NK,  	  up
# VP	                  R4      '       d[   V P                   P                  P                  R/ 4      pV Uu. uF'  qP	                  VR,          4      '       g   K"  RV 2NK)  	  up# VP                  4        U
u. uF  qP	                  V4      '       g   K  V
NK  	  up
#   \        \        3 d    . u # i ; iu up
i u upi u up
i ).r  r3  r  Nr  )r2  r7  rO  r$  rH  rd  KeyErrorr;  r8   dirr  keys)rT   r_  rD   r`  ra  r   dottedr  partrv  n	conv_varsr  s   &&&&&        r   r]  Pdb._complete_expression  s   }}}I C''B4==+A+AB$; ZZ_F!9'',,--112OPQWXYQZ[]Q^_CAY-C"1RLD!#,C ) XXfSbk*S0F(+CM1LL4LJFJJMMs## MM33778UWYZ	/8VytOODQSH<U
!D6
yVV!wwy?y!LL,>AAy?? n- 	 N
 W?s=   G :AG ;G0G0/G5	G51G:G:G-,G-c                ~     ^ RI pR^TP                  4       ^,          ,
          ,          .#   \         d    . u # i ; i)r   Nr  )r   r   
get_begidx)rT   r_  rD   r`  ra  r   s   &&&&& r   _complete_indentationPdb._complete_indentation  sC    	 q8..0144566  	I	s   , <<c                v    VP                  4       '       g   V P                  WW44      # V P                  WW44      # r&   )rG  r  r^  )rT   r_  rD   r`  ra  s   &&&&&r   r  Pdb.complete_multiline_names  s5     zz||--d&II##D??r   c                   VP                  R 4      '       d[   V P                  P                  P                  R/ 4      pV Uu. uF'  qfP                  VR,          4      '       g   K"  R V 2NK)  	  up# ^ p. pV P	                  V P                  P                  V P                  P
                  ,          4      p	V	P                  W4      ;p
e   VP                  V
4       V^,          pK1  V# u upi )r  r3  r  )rH  r2  r7  r  rX  rO  completere  )rT   r_  rD   r`  ra  r  r  statematches	completerr:   s   &&&&&      r   r^  Pdb.completedefault  s    ??3//334QSUVI+4R94R8QJavJ9RR$$T]]%<%<t}}?U?U%UV	!**477uDNN5!QJE Ss   C)&	C)c              #    "    ^ RI p T P                  T4      pTP                  4       pTP	                  TP
                  4       Rx  TP	                  T4       R#   \         d	    Rx   R# i ; i  TP	                  X4       i ; i5irh   )r   r   rX  rW  rY  r  )rT   r   r   r  old_completers   &&   r   _enable_rlcompleterPdb._enable_rlcompleter  s|     	
	2((,I$224M""9#5#56""=1  		 ""=1s:   BA A A2 	BA/+B.A//B2BBc                h    V P                  ^ 4       V P                  4        V P                  4        R# rh   )print_stack_tracer  r  rT   r4  s   &&r   r  Pdb._pdbcmd_print_frame_status  s(    q!!!#r   c                    V P                   '       d7   V P                   R,          R8X  d   V P                   P                  4        R# R# R# )r  r  Nr  )rI  r8  r  s   &&r   r9   Pdb._pdbcmd_silence_frame_status  s4    ===T]]2.2NNMM O=r   c                    Wn         R # r&   )rf  r  s   &&r   _pdbcmd_restore_lastcmdPdb._pdbcmd_restore_lastcmd  s    r   c                   V'       g,   \        \        P                  P                  4      ^,
          pM \	        V4      p V P                  V4       Y n	        Y P                  9   d   T P                  T,          pMRp. T P                  T&   T P                  pRT n        RT n         T P                  4        RT n        YPn        R#    T P                  T4        R# ; i  \         d$   pT P                  RT,          4        Rp?R# Rp?ii ; i  \         d9    T'       d   Y@P                  T&   MT P                  T T P                  R4        Li ; i  RT n        YPn        i ; i)r  Nzcannot set commands: %sz(com) Tz1command definition aborted, old commands restoredF)r  r   rr  rs  int_print_invalid_argget_bpbynumberr   r&  r  r  r   r  rz  r(  )rT   r4  bnumerrold_commandsprompt_backs   &&    r   do_commandsPdb.do_commands  s2   J s~~001A5D3x	%
 "== ==.LL dkk!%	&LLN &+D"%K?'',  	JJ0367	" ! 	L&2d#MM$'JJJK	L &+D"%KsM   C C  (D C D+D		DE$-EE EE E&c                   V'       gp   V P                   '       d\   V P                  R 4       \        P                  P                   F,  pV'       g   K  V P                  VP                  4       4       K.  	  R# RpRpRpRpVP                  R4      pV^ 8  da   W^,           R P                  4       pV P                  V4      ;p	'       d   V P                  RV: RV	: 24       R# VRV P                  4       pVP                  R4      p
RpV
^ 8  do   VRV
 P                  4       pV P                  V4      pV'       g   V P                  RV,          4       R# TpW^,           R P                  4       p \        V4      pM \        V4      pV'       g   V P7                  4       pV P9                  V4      pV P;                  WEV4      pV'       d   V P=                  VVW&V4      p	V	'       d   V P                  V	4       R# V P?                  VV4      R,          pV P                  R
VP@                  VPB                  VPD                  3,          4       R# R#   \         d    T P                  RT,          4        R# i ; i  \         d     \        TT P                   P"                  T P                   P$                  4      pM	   Tp M; i \'        TR4      '       d   TP(                  pTP*                  pTP,                  p\/        T4      pTP0                  pTP2                  p EL   T P5                  T4      w  rpT'       g   T P                  R	T,          4         R# Tp\        T4      p  EL; ii ; i)z!Num Type         Disp Enb   WhereNrg  Invalid condition r  r  z%r not found from sys.pathzBad lineno: %s__func__zJThe specified object %r is not a function or was not found along sys.path.zBreakpoint %d at %s:%dr  )#r  r   r   rr  rs  bpformatr(  r  _compile_error_messager&  r  rfindlookupmoduler  r   r  r2  r7  rO  r6  r  __code__r(   r    r   __globals__lineinfodefaultFiler[  	checkline	set_break
get_breaksnumberr   rD   )rT   r4  	temporaryrt  r>   r   condmodule_globalscommar  colonr+   rJ  r>  r   oklnrD   s   &&&               r   do_breakPdb.do_breakG  s     {{{@A..33BrR[[]3 4  19Qwx='')D11$77s7

sCDfu+$$&C		#A:6E{))+H!!(+A

7(BCAgh-&&(CS%S6 '')H<<)~~h?..4(KC

3__Xt4R85 ii"'':; < M  

+c12  % $ 7 7 $ 6 68DD%tZ00#}}==D  $||H7=F#//H%)%5%5N%)-s);&R2

 $FHK$L M!H WF3%s[   4I I> #I;:I;>M5
5K ?M5 KM5
AL&&6M1M5 M1-M51M5c                    V P                   P                  P                  pVR 8X  d   V P                  '       d   V P                  pV# )r  )r2  rB  r   r   )rT   r>   s   & r   r  Pdb.defaultFile  s5    ==''33z!doooHr   c                *    V P                  VR 4       R# )TN)r  r  s   &&r   	do_tbreakPdb.do_tbreak  s     	c4 r   c                B   RpVP                  R4      p\        V4      ^8X  d   V^ ,          P                  4       pM*\        V4      ^8X  d   V^,          P                  4       pMV# VR8X  d   V# VP                  R4      pV^ ,          R8X  d   V^  \        V4      ^ 8X  d   V# V P                  4       p\        V4      ^8X  d   V^ ,          pM.V P	                  V^ ,          4      pV'       d   TpV^,          pMV# \        WpP                  V4      4      p	T	;'       g    T# )Nr!  r"   rx  rT   )NNN)r$  r  rG  r  r  rG   r[  )
rT   
identifierfailedidstringidpartsfnameitemrJ  answers
   &&        r   r  Pdb.lineinfo  s   ###C(x=A!""$B]a!""$BM8F]8va5zQ  "u:?8D !!%(+AQxt\\%%89r   c                b   \        V R R4      pVf   V'       d   VP                  MRp\        P                  ! WV4      pV'       g   V P	                  R4       ^ # VP                  4       pV'       d+   V^ ,          R8X  g   VR,          R8X  g   VR,          R8X  d   V P                  R4       ^ # V# )r2  NzEnd of filer?  :N   Nz"""z'''zBlank or comment)rd  r7  r4   getliner   rG  r&  )rT   r>   r   r  r  rD   s   &&&&  r   r  Pdb.checkline  s     j$/!05U__4N  >BLL'zz|aC2h%DH$5JJ)*r   c                6   V'       g   V P                  V4       R # VP                  4       pV F=  p V P                  V4      pVP                  4        V P	                  RV,          4       K?  	  R #   \
         d   pT P                  T4        R p?Ke  R p?ii ; i)Nz
Enabled %s)r  r$  r  enabler   r   r&  rT   r4  r)  rN   rt  r  s   &&    r   	do_enablePdb.do_enable  s}     ##C(yy{A0((+ 		\B./    

3    A11B<BBc                6   V'       g   V P                  V4       R # VP                  4       pV F=  p V P                  V4      pVP                  4        V P	                  RV,          4       K?  	  R #   \
         d   pT P                  T4        R p?Ke  R p?ii ; i)NzDisabled %s)r  r$  r  disabler   r   r&  r  s   &&    r   
do_disablePdb.do_disable  s}     ##C(yy{A1((+ 

]R/0    

3 r  c                   V'       g   V P                  V4       R # VP                  R^4      p V^,          pV P                  V4      ;p'       d   V P                  RV: RV: 24       R #   V P                  V^ ,          P                  4       4      pW5n        V'       g%   V P                  RVP                  ,          4       R # V P                  RVP                  ,          4       R #   \         d    R p Li ; i  \         d    T P                  R4        R # \         d   pT P                  T4        R p?R # R p?ii ; i)Nr  r  r  z#Breakpoint %d is now unconditional.z$New condition set for breakpoint %d.Breakpoint number expected)r  r$  r  r&  
IndexErrorr  rG  r  r   r  r   )rT   r4  r)  r  r  rt  s   &&    r   do_conditionPdb.do_condition(  s    ##C(yya 	7D11$77s7

sCD 8
	Q$$T!W]]_5B GBRYYNOCbiiOP  	D	  	5JJ34 	JJsOO	s;   !C* C* .&C= *C:9C:=EE%E&D==Ec                   V'       g   V P                  V4       R # VP                  4       pV'       g   V P                  R4       R # \        V4      ^8X  d   ^ pM7\        V4      ^8X  d    \	        V^,          4      pMV P                  V4       R #  V P                  V^ ,          P                  4       4      pW4n        V^ 8  d9   V^8  d   RV,          pMRpV P                  RWTP                  3,          4       R # V P                  RVP                  ,          4       R #   \
         d    T P                  T4        R # i ; i  \
         d   pT P                  T4        R p?R # R p?ii ; i)Nr  z%d crossingsz
1 crossingz%Will ignore next %s of breakpoint %d.z-Will stop next time breakpoint %d is reached.)r  r$  r&  r  r  r   r  rG  ignorer   r  )rT   r4  r)  countrt  countstrr  s   &&     r   	do_ignorePdb.do_ignoreJ  s4    ##C(yy{JJ34t9>EY!^DG
 ##C(	*$$T!W]]_5B Iqy19-5H+HD&		23 4 L!yy) *)  '',  	JJsOO	s*   +D! &E !E EE+E&&E+c                |     \        V4      pVP                  4       P                  4       #   \         d    Tp L-i ; ir&   )r  r  rG  rk  )rT   r   r  replys   &&& r   _prompt_for_confirmationPdb._prompt_for_confirmationy  s=    	&ME {{}""$$  	E	s   + ;;c                   V'       g   V P                  R RR7      pVR9   dd   \        P                  P                   Uu. uF  q3'       g   K  VNK  	  ppV P	                  4        V F  pV P                  RV,          4       K  	  R# RV9   d   VP                  R4      pVRV pW^,           R p \        V4      pV P                  Wg4      R,          pV P                  Wg4      pV'       d   V P                  V4       R# X F  pV P                  RV,          4       K  	  R# VP                  4       p	V	 F>  p V P                  V4      pV P                  V4       V P                  RV,          4       K@  	  R# u upi   \         d    RT,          p Li ; i  \         d   pT P                  T4        Rp?K  Rp?ii ; i)	zClear all breaks? no)r  z
Deleted %sNr  NNNzInvalid line number (%s))yyes)r  r   rr  rs  clear_all_breaksr   r  r  r  clear_breakr   r&  r$  r  clear_bpbynumber)
rT   r4  r  rt  bplistrN   r>   r   r  
numberlists
   &&        r   do_clearPdb.do_clear  s    11$ 2 E $'*~~'@'@G'@B""'@G%%' BLL!23 !#:		#A2AwHcd)C9S :1=&&x8

3  !BLL!23 !YY[
A0((+ %%a(\B./ 1 H  70367   

3 s5   	E9E91E> 9F>FFF?#F::F?c                    V'       g   R pM \        V4      pV P                  V4       R #   \         d    T P                  RT,          4        R # i ; i)NzInvalid count (%s))r  r   r&  r  )rT   r4  r  s   && r   do_wherePdb.do_where  sP     EC 	u%  

/#56s   + #AAc                   Wn         V P                  V P                   ,          ^ ,          V n        V P                  V P                  RV P                  4       V P	                  V P                  V P                   ,          4       RV n        R# )r   r<  N)r5  r4  r2  rE  print_stack_entryr   )rT   r  s   &&r   _select_framePdb._select_frame  s\    

4==1!4%%dmmXt}}Mtzz$--89r   c                   V P                   '       g   V P                  R 4       R# V'       g   \        V P                   4       F  w  r#W P                  8X  d   RMRp\	        V4      p\        V4      ^P8  d   VR,          R,           pV P                   V,          P                  f   RMVR pV P                  V RV RV 24       K  	  R#  \        V4      p^ Tu;8:  d   \        T P                   4      8  d   M MT P                   T,          P                  f   T P                  R	4       R# Ypn        T P                  RT P                   T,          P                  4       T P                  T P                  T P                  ,          4       R# T P                  R
4       R#   \         d    T P                  R4        R# i ; i)zDid not find chained exceptions. To move between exceptions, pdb/post_mortem must be given an exception object rather than a traceback.N>r  :NM   N...z  -z>3zArgument must be an integerz;This exception does not have a traceback, cannot jump to itzNo exception with that number)r  r   r9   r	  r  r  r  r  r   r&  rL  r  r4  r5  )rT   r4  ixexcr   rep	indicatorr  s   &&      r   do_exceptionsPdb.do_exceptions  sz    '''LL3
 $T%=%=> "&C&C C3is8b=c(U*C //3AAI r7 
 xq1SE:; ?S F:S!9!9::++F3AAIJJ\]06-

4!9!9&!A!O!OP&&tzz$--'@A

:;  

89s   F" "GGc                >   V P                   ^ 8X  d   V P                  R4       R#  \        T;'       g    ^4      pT^ 8  d   ^ pM\	        ^ T P                   T,
          4      pT P                  T4       R#   \         d    T P                  RT,          4        R# i ; i)r   zOldest frameNInvalid frame count (%s))r5  r&  r  r   maxr  rT   r4  r  newframes   &&  r   do_up	Pdb.do_up   s     ==AJJ~&	qME 19H1dmme34H8$  	JJ1C78	s   A5 A5 5#BBc                   V P                   ^,           \        V P                  4      8X  d   V P                  R4       R#  \	        T;'       g    ^4      pT^ 8  d   \        T P                  4      ^,
          pM7\        \        T P                  4      ^,
          T P                   T,           4      pT P                  T4       R#   \
         d    T P                  RT,          4        R# i ; i)r  zNewest frameNr  )r5  r  r4  r&  r  r   minr  r  s   &&  r   do_downPdb.do_down  s     ==1DJJ/JJ~&	qME 194::*H3tzz?Q.0EFH8$  	JJ1C78	s    C C #C*)C*c                   V'       d;    \        V4      pY P                  P                  8:  d   T P                  R4       R# MRpV P                  V P                  V4       ^#   \         d    T P                  R T,          4        R# i ; i)Error in argument: %rNz7"until" line number is smaller than current line number)r  r   r&  r2  r]  	set_until)rT   r4  r   s   && r   do_untilPdb.do_until*  s     S ///

 ) * 0
 Ft}}f-  

2S89s   A# ##B
	B
c                \    V'       d   V P                  V4       R # V P                  4        ^# r&   )r  r)  r  s   &&r   do_stepPdb.do_stepC  s$     ##C(r   c                r    V'       d   V P                  V4       R # V P                  V P                  4       ^# r&   )r  set_nextr2  r  s   &&r   do_nextPdb.do_nextQ  s+     ##C(dmm$r   c                \   V P                   R 8X  d   V P                  R4       R# V'       dJ   ^ RIp\        P                  R,          p VP                  V4      \        n        T\        P                  R&   \        h  \         d%   pT P                  RT: RT: 24        Rp?R# Rp?ii ; i)inlinezrun/restart command is disabled when pdb is running in inline mode.
Use the command line interface to enable restarting your program
e.g. "python -m pdb myscript.py"N:r   r  NzCannot run r  :Nr   N)r   r&  shlexrl   argvr$  r   r	   )rT   r4  r  argv0r   s   &&   r   do_run
Pdb.do_run^  s     99 JJ : ; HHSME ;;s+ !CHHRL  

#q9:s   	A< <B+B&&B+c                r    V'       d   V P                  V4       R # V P                  V P                  4       ^# r&   )r  
set_returnr2  r  s   &&r   	do_returnPdb.do_returny  s+    
 ##C(&r   c                   V'       d   V P                  V4       R # V P                  '       g:    \        P                  ! \        P                  V P                  4      \
        n        V P                  4        ^#   \         d     Li ; ir&   )	r  r   r  r  r+  r   r  r   r   r  s   &&r   do_continuePdb.do_continue  sm    
 ##C(}}}MM&--1D1DE , 	  
 s   8A9 9BBc                l   V'       g   V P                  V4       R # V P                  ^,           \        V P                  4      8w  d   V P	                  R4       R #  \        V4      p WP                  n        V P                  V P                  ,          ^ ,          V3V P                  V P                  &   V P                  V P                  V P                  ,          4       R #   \         d$   pT P	                  RT,          4        R p?R # R p?ii ; i  \         d    T P	                  R4        R # i ; i)Nz)You can only jump within the bottom framezJump failed: %sz)The 'jump' command requires a line number)
r  r5  r  r4  r&  r  r2  r]  r  r   )rT   r4  r   s   && r   do_jumpPdb.do_jump  s     ##C(==1DJJ/JJBC	2c(C2 *-&,0JJt}},Ea,H#,M

4==)&&tzz$--'@A 2

,q0112  	DJJBC	Ds+   D 'A9C" "D-DDD32D3c                X    \        V P                  V P                  V P                  4      # r&   )r   r  r  r   rS   s   &r   _create_recursive_debuggerPdb._create_recursive_debugger  s    4##TZZ==r   c                0   V'       g   V P                  V4       R # V P                  4        V P                  P                  pV P                  P                  pV P                  4       pRV P                  P                  4       ,          Vn        V P                  R4        \        P                  ! VP                  WV34       V P                  R4       V P                  4        VP                  V n        R #   \         d    T P                  4         LQi ; i)Nz(%s) zENTERING RECURSIVE DEBUGGERzLEAVING RECURSIVE DEBUGGER)r  r  r2  r7  rO  r.  r   rG  r   rl   call_tracingr   r   r"  r!  rf  )rT   r4  r  r   ps   &&   r   do_debugPdb.do_debug  s     ##C(--))''++-T[[..0023	QUUS6$:; 	12yy	  	OO	s    #C7 7DDc                   V P                   R 8X  d   \        \        R4      '       gk     \        R4      pVP	                  4       P                  4       pVR8X  g   VR8X  d   \        P                  ! ^4       KQ  VP	                  4       R8X  g   Kh  R# RV n	        V P                  4        ^#   \         d    RpT P                  R4        Lxi ; i)r  ps1Tz7Quitting pdb will kill the process. Quit anyway? [y/n] r  r"   r~  N)r   r6  rl   r  rk  rG  r  r   rx   _user_requested_quitset_quit)rT   r4  r  s   && r   do_quitPdb.do_quit  s     99 e)<)<%!"[\E!KKM//1E C<5B;HHQK[[]c)$(!   %ELL$%s   )B+ +CCc                F    V P                  R 4       V P                  V4      # )r"   )r   r9  r  s   &&r   do_EOF
Pdb.do_EOF  s    
 	R||C  r   c           	     n   V'       d   V P                  V4       R # V P                  P                  pV P                  P                  pVP                  VP
                  ,           pVP                  \        P                  ,          '       d
   V^,           pVP                  \        P                  ,          '       d
   V^,           p\        V4       Fa  pVP                  V,          pWc9   d1   V P                  V: RV P                  W6,          V4      : 24       KL  V P                  V: R24       Kc  	  R # )N = z = *** undefined ***)r  r2  rB  rO  co_argcountco_kwonlyargcountco_flagsinspect
CO_VARARGSCO_VARKEYWORDSr%  co_varnamesr   r  )rT   r4  cor`   r~  rN   r  s   &&     r   do_argsPdb.do_args  s    
 ##C(]]!!}}%%NNR111;;++++1Q;;////QqSqA>>!$D|$
D0QRS?@ r   c                   V'       d   V P                  V4       R # RV P                  P                  9   d?   V P                  V P	                  V P                  P                  R,          R4      4       R # V P                  R4       R # )Nri  retvalzNot yet returned!)r  r2  rO  r   r  r&  r  s   &&r   	do_retvalPdb.do_retval  s]    
 ##C(4==111LL)?)?)MxXYJJ*+r   c                     \        WP                  P                  V P                  P                  4      #    T P	                  4        h ; ir&   )r  r2  r7  rO  r"  r  s   &&r   _getvalPdb._getval   s<    	]]44dmm6L6LMM	OOs	   36 A	c                &    Vf5   \        WP                  P                  V P                  P                  4      # \        WP                  VP                  4      #   \         d,   p\        RT P                  T4      ,          4      u R p?# R p?ii ; i)Nz** raised %s **)r  r2  r7  rO  r  rQ   rq  )rT   r4  r  r   s   &&& r   r  Pdb._getval_except'  sq    	D}C!8!8$--:P:PQQC%..AA 	D*T-=-=c-BBCC	Ds"   7A A B% BBBc                p    \         P                  ! 4       pV P                  V P                  V4      4       R # r&   )rl   	exceptionr&  rq  rT   r   s   & r   r"  Pdb._error_exc0  s$    mmo

4##C()r   c                     V P                  V4      p T P                  T! T4      4       R #     R # ; i   T P                  4         R # ; ir&   )rO  r   r"  )rT   r4  r>  vals   &&& r   _msg_val_funcPdb._msg_val_func4  sD    	,,s#C	LLc#		OOs   - 5 2A
c           	          \        V4      #   \         d,   p\        R T RT P                  T4       R24      u Rp?# Rp?ii ; i)z	*** repr(z
) failed: z ***N)r  r   rQ   rq  )rT   r  r  r   s   &&& r   r  Pdb._safe_repr>  sJ    	P9 	P9TF*T5E5Ea5H4INOO	Ps   
 A >AAc                h    V'       g   V P                  V4       R # V P                  V\        4       R # r&   )r  rY  r  r  s   &&r   do_pPdb.do_pD  s(    
 ##C(3%r   c                |    V'       g   V P                  V4       R # V P                  V\        P                  4       R # r&   )r  rY  pprintpformatr  s   &&r   do_pp	Pdb.do_ppN  s,    
 ##C(3/r   c                   R V n         RpV'       d   VR8w  d    RV9   dU   VP                  R4      w  r2\        VP                  4       4      p\        VP                  4       4      pW#8  d	   W2,           pM}\        VP                  4       4      p\	        ^V^,
          4      pMPV P                  e   VR8X  d)   \	        ^V P                  P                  ^,
          4      pMV P                  ^,           pVf
   V^
,           pV P                  P                  P                  pV P                  V4      p \        P                  ! W@P                  P                  4      pV P!                  Wc^,
          V W5V P                  4       \#        V\%        V4      4      V n        \%        V4      V8  d   V P'                  R4       T P+                  4        R#   \
         d    T P                  RT,          4        R# i ; i  \(         d     LIi ; i)rI   Nrx  rg  r  z[EOF])rf  r$  r  rG  r  r   r&  r   r2  r]  rB  r   get_file_breaksr4   r5   r7  _print_linesr  r  r   r(  r  )rT   r4  lastfirstr>   	breaklistrA   s   &&     r   do_listPdb.do_list\  s    3#:#:"%))C.KE.Etzz|,D|$|		,E519-E [[ C3J4==11A56EKK!OE<2:D==''33((2		&&x1H1HIEe!GD15"mm-dCJ/DK5zD W% 	!!#)  

2S89$ ! 		s+   AG 5,G 1BG8 #G54G58HHc                   V'       d   V P                  V4       R # V P                  P                  P                  pV P	                  V4      p V P                  V P                  4      w  rET P                  YEY0P                  4       T P                  4        R #   \         d   pT P                  T4        R p?R # R p?ii ; ir&   )
r  r2  rB  r   rf  _getsourcelinesr3   r&  rg  r  )rT   r4  r>   rj  rA   r   r  s   &&     r   do_longlistPdb.do_longlist  s    
 ##C(==''33((2		 00?ME 	%MMB!!#	  	JJsO	s   B C $B;;C c                   V'       g   V P                  V4       R #  V P                  V4      p T P                  T4      w  r4T P                  Y44       R #     R # ; i  \        \        3 d   pT P                  T4        R p?R # R p?ii ; ir&   )r  rO  rn  r3   	TypeErrorr&  rg  )rT   r4  r  rA   r   r  s   &&    r   	do_sourcePdb.do_source  s    
 ##C(	,,s#C	 005ME 	%(	 # 	JJsO	s"   A A AB
.BB
c                   V'       d*   VP                   pV P                  P                  VR4      pMR;rV\        W4       F  w  rx\	        V4      P                  ^4      p	\        V	4      ^8  d
   V	R,          p	Ws9   d   V	R,          p	M	V	R,          p	Wu8X  d   V	R,          p	MWv8X  d
   V	R,          p	V P                  '       d   V P                  V4      pV P                  V	R,           VP                  4       ,           4       K  	  R# )r  r  Bz->z>>	Nr  )r]  r   r  r9   r_   rjustr  r   rH  r   r  )
rT   rA   r#   r  r  current_lineno
exc_linenor   rD   ss
   &&&&&     r   rg  Pdb._print_lines  s    "^^N++E26J*,,N%e3LFF!!!$A1vzSSS'T	%T	}}}**40LLTDKKM12 4r   c                j   V'       g   V P                  V4       R #  V P                  V4      pR p TP                  P                  pT'       d%   T P                  RTP                  ,          4       R #  TP                  pT'       d%   T P                  RTP                  ,          4       R # TP                  \        J d0   T P                  RTP                  : RTP                  : 24       R # T P                  \        T4      4       R #     R # ; i  \         d     Li ; i  \         d     Li ; i)Nz	Method %szFunction %szClass rx  )r  rO  r  r  r   r   r(   r   typer   r   )rT   r4  rS  r   s   &&  r   	do_whatisPdb.do_whatis  s    
 ##C(	LL%E 	>>**D LLt||34	>>D LL56??d"LL%*:*:E<N<NOPT%[!3	
  		  		s.   D D 4D$ DD! D!$D21D2c           	     x   V'       g   V P                   '       dx   V P                  R 4       V P                   P                  V P                  / 4      P	                  4        F,  w  r#V P                  V: RV P                  W24      : 24       K.  	  R# V P                  R4       R# V P                  V4      ;p'       d   V P                  RV: RV: 24       R# V P                  V4      pW0P                   P                  V P                  / 4      V&   V P                  RV: RV P                  W14      : 24       R# )zCurrently displaying:r  z No expression is being displayedzUnable to display r  N)
r   r   r  r2  r  r  r  r&  r  
setdefault)rT   r4  keyrX  r  s   &&   r   
do_displayPdb.do_display  s     45 $ 3 3DMM2 F L L NHCLLS$//#2K!LM !O ?@11#66s6

cBC))#.EH**4=="=cBdooc6OPQr   c                
   V'       d+    V P                   P                  V P                  / 4      V R# V P                   P                  V P                  R4       R#   \         d    T P	                  R T,          4        R# i ; i)znot displaying %sN)r   r  r2  ry  r&  r8  r  s   &&r   do_undisplayPdb.do_undisplay	  sf     6OO''r:3? OOt4  6

.456s   'A #BBc                    V P                   P                  V P                  / 4       Uu. uF  pVP                  V4      '       g   K  VNK   	  up# u upi r&   )r   r  r2  rH  )rT   r_  rD   r`  ra  r   s   &&&&& r   complete_undisplayPdb.complete_undisplay	  sJ    ??..t}}bA 'Aa<<% A ' 	' 's   AAc                    / V P                   P                  CV P                   P                  CpV P                  V4      ;_uu_ 4        \	        W P
                  R 7      pVP                  RRR7       RRR4       R#   + '       g   i     R# ; i))r   *pdb interact start* *exit from pdb interact command*)bannerexitmsgN)r2  r7  rO  r  r   r   interact)rT   r4  r   consoles   &&  r   do_interactPdb.do_interact"	  sp     C''B4==+A+AB%%b)),RFG$:%G  I *)))s   *A<<B	c                   VP                  4       p\        V4      ^ 8X  dX   \        V P                  P	                  4       4      pV F,  pV P                  V: RV P                  V,          : 24       K.  	  R# \        V4      ^8X  dp   V^ ,          V P                  9   d:   V P                  V^ ,          : RV P                  V^ ,          ,          : 24       R# V P                  RV^ ,           R24       R# RP                  VR,          4      pRV9  dJ   Rp\        ^^
4       F7  pR	V 2V9  d   R
pR	V 2V9   g   K  V'       d   K%  V P                  R4        R# 	  W@P                  V^ ,          &   R# )r   r?  NzUnknown alias 'r!  r  r  r"  Tr   Fz*Replaceable parameters must be consecutive)	r$  r  sortedr   r{  r   r&  r8   r%  )rT   r4  r)  r{  r#  consecutiver*  s   &&     r   do_aliasPdb.do_alias.	  s(   2 yy{t9>$,,++-.D%e1DEF t9>Aw$,,&$q''4<<Q3HIJ

_T!WIQ78 HHT"X&E5 " B<C3%y-&+3%yE)++

#OP ( %*LLa!r   c                    VP                  4       p\        V4      ^ 8X  d   V P                  V4       R# V^ ,          V P                  9   d   V P                  V^ ,           R# R# rh   )r$  r  r  r   )rT   r4  r)  s   && r   
do_unaliasPdb.do_unalias`	  sP    
 yy{t9>##C(7dll"T!W% #r   c                t    V P                    Uu. uF  qUP                  V4      '       g   K  VNK  	  up# u upi r&   )r   rH  )rT   r_  rD   r`  ra  as   &&&&& r   complete_unaliasPdb.complete_unaliasl	  s)    <<><a<<+=<>>>s   55c                   Vf   V P                   pMNV^ 8X  d    V P                   V P                  ,          .pM(V^ 8  d   V P                   R V)  pMV P                   V) R  p V F  pV P                  V4       K  	  R #   \         d     R # i ; ir&   )r4  r5  r  r(  )rT   r  stack_to_printframe_linenos   &&  r   r  Pdb.print_stack_trace	  s    =!ZZNaZ"jj78NQY!ZZ%0N!ZZ0N	 .&&|4 !/  		s   !A= =BBc                F   Vw  r4W0P                   J d   R pMRpV P                  W4      pV P                  '       dO   VP                  V^4      p\	        V4      ^8  d-   V P                  V^,          4      V^&   VP                  V4      pV P                  WV,           4       R# )z> r  N)r2  format_stack_entryr   r$  r  rH  r8   r   )rT   r  prompt_prefixr  r   rv  stack_entryrA   s   &&&     r   r  Pdb.print_stack_entry	  s    $MM!FF--lJ===%%mQ7E5zA~..uQx8a+007V)*r   c                @   V'       g    \         P                  P                  W4      #   \        V R V,           4      pV! 4       #   \         d    \        T RT,           4      p Mi ; i \
        P                  P                  ^8  d   T P                  RT,          4       R# TP                  f   T P                  RT,          4       R# T P                  T P                  TP                  4      4       R#   \         d    T P                  RT,          4        R# i ; i)help_r:  zJNo help for %r; please do not run Python with -OO if you need command helpNz&No help for %r; __doc__ string missingzNo help for %r)r   r   do_helprd  r;  rl   rm   optimizer&  __doc__r   _help_message_from_doc)rT   r4  topicr3  s   &&  r   r  Pdb.do_help	  s     77??4--	G5gm4w! 5!$45 yy!!Q&

 68;< =&

CcIJLL44W__EF  	/JJ'#-.	/s)   A A%"C6 $A%%C6 6#DDc                    T P                  V P                  P                  ;'       g    R P                  4       4       R# )r"   N)r   	help_execr  rG  rS   s   &r   r  Pdb.help_exec	  s+     	dnn,,2299;<r   c                    \        4        R # r&   r   rS   s   &r   help_pdbPdb.help_pdb	  s    r   c                V   VP                  R 4      '       g(   VP                  R\        P                  4      R ,           p\        P                  P                  V4      '       d*   \        P                  P                  V4      '       d   V# R# \        P                   F  p\        P                  P                  V4      '       d   \        P                  ! V4      pK=  \        P                  P                  W!4      p\        P                  P                  V4      '       g   K  Vu # 	  R# )rh  rx  N)r  r'  ro   seprp   isabsrv   rl   islinkreadlinkr8   )rT   r>   rq   fullnames   &&  r   r  Pdb.lookupmodule	  s       ''''RVV4u<H77==""ww~~h''xxG''..))++g.ww||G6Hww~~h''   r   c                    < V ^8  d   QhRS[ /# )r]   rr   )r[   )ra   rY   s   "r   rb   Pdb.__annotate__	  s      , r   c                R   R V n         RV n        V P                  VP                  4      V n        ^ RIpVP                  P                  4        VP                  P                  VP                  4       V P                  P                  4        V P                  VP                  4       R# TFN)r   r7  r[  r>   r   r   __dict__r9  r  r^   r~  r   r   )rT   rr   r   s   && r   _runPdb._run	  s}     %)!$)!,,v7
 	!  !1!12 	$$&r   c                    < V ^8  d   QhRS[ /# )r]   r   )r  )ra   rY   s   "r   rb   r  
  s     @ @} @r   c                X    \         P                  ! V4      R,          P                  4       # )r  r  )r   format_exception_onlyrG  rU  s   &&r   rq  Pdb._format_exc
  s!    ..s3B7==??r   c                     \        VR R4       R#   \         d%   p\        T P                  T4      4      u Rp?# Rp?ii ; i)r  r  Nr"   )r/   r;   rQ   rq  )rT   r  r   s   && r   r  Pdb._compile_error_message
  s@    	0D)V,   	0))#.//	0s    A ;A A c                P    \         P                  ! V4      w  r#\        ^V4      pW#3# )r  )rC  getsourcelinesr  )rT   r  rA   r   s   &&  r   rn  Pdb._getsourcelines
  s)      ..s3Q}r   c                   VP                  4       P                  4        Uu. uF  q3P                  4       NK  	  ppV'       g   R # RV9   d   VP                  R4      pM^p. pR\	        V P
                  4      ,          p\        V4       FB  w  rV^ 8X  d   Rp	MW8  d   Rp	MV'       d    M$Rp	VP                  Wy,           V,           4       KD  	  RP                  V4      # u upi )zNo help message found.r"   r  zUsage: z       r  )	r  
splitlinesrG  indexr  r   r9   re  r8   )
rT   doc
usage_onlyrD   rA   	usage_end	formattedr  rN   rv  s
   &&&       r   r  Pdb._help_message_from_doc
  s    *-**,*A*A*CD*C$*CD+;BII	s4;;'' 'GAAv""V_t34 ( yy##' Es   C c                B   V'       g   V P                  R 4       MV P                  RV 24       \        P                  ! \        V \        P
                  ! ^4      P                  P                  4      4      pVe%   V P                  V P                  VRR7      4       R# R# )z%Argument is required for this commandzInvalid argument: NT)r  )
r&  rC  getdocrd  rl   r  rB  r(   r   r  )rT   r4  r  s   && r   r  Pdb._print_invalid_arg3
  sz     JJ>?JJ+C512
 nnWT3==+;+B+B+J+JKL?LL44ST4JK r   ) r	  r  r
  rU  r7  r   r   r   r  r  rI  r   r  r  r  r  r2  r5  rc  r   r   rf  r   r   r   r   r   r   r4  r  r   r   )	tabNNNFTNNFr&   r  )F)r
   N)r(  r  r  r%  r  r9  r+  )r   r   r   r   r  r  r~  r  rs   r  r%  r+  r.  r/  rL  r   r   rP  setterrX  r`  user_opcoder_  rl  rw  r{  rF  r  r  r  r   r  r  rV  r  r  r  r  r  r  r  r,  r1  r2  rH  r   r&  rE  rX  r  ro  ru  r]  r  r  r^  r  r  r9  r  r  complete_commandsr  r  do_bcomplete_break
complete_br  complete_tbreakr  r  r  complete_enabler  complete_disabler  complete_conditionr  complete_ignorer  r  do_clcomplete_clearcomplete_clr  do_wdo_btr  r  r
  do_ur  do_dr  do_untr  do_sr  do_nr!  
do_restartr%  do_rr(  do_cdo_contr+  do_jr.  r3  complete_debugr9  do_qdo_exitr<  rH  do_arL  do_rvrO  r  r"  rY  r  r^  rc  complete_print
complete_pcomplete_pprk  do_lro  do_llrs  complete_sourcerg  r  complete_whatisr  complete_displayr  r  r  r  r  r  r<  r  line_prefixr  r  do_hr  r  r  r  rq  r  rn  r  r  r   rW   r   r   s   @@r   r   r   _  s    # #&7"r! ! !1D 1f< bc& d & yz { 
*&  KL&/(
6
!5 D"7H . .(:$  >Rh3-+^8$B$L1 8.,
E ! !0D&?@@7@ 2 2"
 I&V +a<H D'N#J! )O! F.0& )O1, *Q@ ,+*Z )O%-0\ E'N$K&& DE-<^%& D%& D. F D
 D2 J	 D( ! D72> D>!0 *N2 DG!A& D, ED*P&0 *N%J&K1$d D$" E)& +O3.#"J +OR. ,5'
I0*d
&?; =H +"G8 D= 
< 0@ @$,L Lr   wheredownupbreaktbreakr9  r  r  r  	conditionr  stepr<   untiljumpreturnrK  continuerI   longlistr)  r2  ppwhatisr  display	undisplayr  r#  unaliasdebugquitr:  z

c                 :    \        4       P                  WV4       R # r&   )r   r   	statementr  r   s   &&&r   r   r   W
  s     EIIi&)r   c                 6    \        4       P                  WV4      # r&   )r   runeval)
expressionr  r   s   &&&r   r  r  f
  s     5==f55r   c                     \        WV4       R # r&   )r   r  s   &&&r   runctxr   o
  s    	F#r   c                  6    \        4       P                  ! V / VB # r&   )r   runcall)r)  kwdss   *,r   r"  r"  s
  s     5==$'$''r   headerc                     \         P                  e   \         P                  pM\        RRRR7      pV e   VP                  ! V 4       VP                  ! \        P
                  ! 4       P                  VR7       R # Nr  r   Tr   r   r   r  )r   r  r   r  rl   r  r  r$  r  pdbs   $$ r   r  r  }
  sU     )$$xEFMM#--/((8<r   c                   "   \         P                  e   \         P                  pM\        RRRR7      pV e   VP                  ! V 4       VP                  ! \        P
                  ! 4       P                  VR7      G R j  xL
  R #  L5ir&  )r   r  r   r%  rl   r  r  r(  s   $$ r   r%  r%  
  s`      )$$xEF


cmmo44x
HHHs   A<B>B?Bc                     a a ] tR tRt oRV 3R llt]R 4       tR t]R 4       t	R t
]P                  RR l4       t]P                  R 4       tV3R	 lR
 ltR tR tRR ltV 3R ltR tV 3R ltV 3R ltV 3R ltR t]tR tR tR t]P                  R 4       t]P                  R 4       tR t]t V 3R lt!V 3R lt"Rt#Vt$V ;t%# ) 
_PdbServeri
  c                   < W0n         R V n        Wn        . V n        RV n        V'       d   V P                  V4       \        SV `  ! RRR/VB  W@n        R # )NFr   r
   )	_owns_sockfile_interact_state	_sockfile_command_name_cache_write_failed_start_signal_listenerr   rs   r   )rT   sockfilesignal_serverowns_sockfiler   kwargsr   s   &&&&&,r   rs   _PdbServer.__init__
  sU     ,#!#% "''6 	2%262 r   c                 z    \         P                  p ^ p\        V P                  R V P                  R VR R2^4      # )r   02XF0)rl   version_infor  majorminor)vrevisions     r   protocol_version_PdbServer.protocol_version
  s>     aggc]1773-~R@"EEr   c                   T; d2    ^8  d+   R ;e#   w  \         Rc ;e   w   \         Rc ;e	   w      R#     ; d$    ^8  d   R	 ;e   w  \         Rc ;e   w      R#    ; d2    ^8  d+   R
 ;e#   w  \         Rc ;e   w   \         Rc ;e	   w      R#     ; d_    ^8  dX   R ;eP   w  \        Rc;eC   w  p  \        ;QJ d    R V 4       F  '       d   K   RM	  RM! R V 4       4      '       d    R#     d^    ^8  dW   R ;eO   w  \        Rc;eB   w  p  \        ;QJ d    R V 4       F  '       d   K   RM	  RM! R V 4       4      '       d   R#     \        RV 24      h)r]   Nr
   c              3   B   "   T F  p\        V\        4      x  K  	  R # 5ir&   r'   r_   r)   r*   s   & r   r,   3_PdbServer._ensure_valid_message.<locals>.<genexpr>
  s     =AZ3''r  FTc              3   B   "   T F  p\        V\        4      x  K  	  R # 5ir&   rE  rF  s   & r   r,   rG  
       >AZ3''r  'PDB message doesn't follow the schema! r   r~  r  r   r  completionscommand_list)r_   rI   allAssertionError)rT   r  rN  rP  s   &&  r   _ensure_valid_message _PdbServer._ensure_valid_message
  s     222SUCE2
  3 !#% ! 322CECE2  3  #0======	
   $ 2>>>>>>  $=cUC r   c                   aa V3R  lpVV3R lp\         P                  ! 4       o\         P                  ! V\        P                  ! V^R7      .RR7      o\
        P                  ! V4       SP                  4        R# )c                   < \        V 4      ;_uu_ 4        V P                  R 4       V P                  \        P                  4       SP                  4       '       gK    V P                  R4      pTR8X  d    RRR4       R# \        P                  ! \        P                  4       K`   RRR4       R#   \        P                   d     K  i ; i  + '       g   i     R# ; i)g      ?   r   N)r   
settimeoutshutdownsocketSHUT_WRis_setrecvtimeoutr  raise_signalr  )sockr   	shut_downs   & r   listener3_PdbServer._start_signal_listener.<locals>.listener
  s     %fnn-#**,,!#yy s{  ''6 -  ">> ! ! s6   ACB1.C &C1C
C	C

CC	c                  H   < S P                  4        SP                  4        R # r&   )setr8   )ra  threads   r   stop_thread6_PdbServer._start_signal_listener.<locals>.stop_thread
  s    MMOKKMr   )r^  T)rr   r)  daemonN)	threadingEventThreadrZ  create_connectionatexitregisterr#   )clsaddressrb  rg  ra  rf  s   &&  @@r   r3  !_PdbServer._start_signal_listener
  s[    	7	 OO%	!!**7A>?

 	$r   c                (   V P                  V4       \        P                  ! V4      p V P                  P	                  VP                  4       R ,           4       V P                  P                  4        R#   \        \        3 d    RT n	         R# i ; i   
TN)
rS  jsondumpsr0  r   encoder  r3   r   r2  rT   r7  json_payloads   &, r   _send_PdbServer._send  sq    ""6*zz&)
	&NN  !4!4!6!>?NN  "$ 	& "&D	&s   A
A5 5BBc                L    V P                  \        V4      V,           R R7       R# )inforK  Nr{  r_   rL  s   &&&r   r   _PdbServer.message  s    

3s8c>
7r   c                >    V P                  \        V4      R R7       R# )r&  rK  Nr  rP  s   &&r   r&  _PdbServer.error  s    

3s8'
2r   c                    < V ^8  d   QhRS[ /# )r]   r  )r_   )ra   rY   s   "r   rb   _PdbServer.__annotate__"  s     " "3 "r   c                    VR 8X  dH   V P                   '       g6   V P                  RR^ ^ 4      V n         V P                  V P                   R7       V P                  WR7       V P                  4       # )r)  r"   rO  rL  )r1  r  r{  _read_reply)rT   r   r  s   &&&r   
_get_input_PdbServer._get_input"  s`     E>$":":":'+'9'9"b!Q'GD$JJD$<$<J=

&
.!!r   c           
         V P                   '       d   \        hV P                  P                  4       pV'       g   \        h \        P
                  ! V4      pT; d%    ^8  d   R ;e   w  \        Rc;e	   w  p   T#    ; dW    ^8  dP   R	 ;eH   w  \        Rc;e;   w  p   TR8X  d   \        hTR8X  d   \        hT P                  RT 24       \        h    d    ^8  d   R
 ;e   w   d    ^8  d   R ;e   w  \        Rc;er   w  uuuuuuu\        Rc;e^   w  uuuuuuu\        Rc;eJ   w  uuuuuuu\        Rc;e6   w  uuuuuu    rVrxT P                  YVYx4      p	T P                  T	R7       EK          T P                  RT 24       EK    \        P                   d    T P                  RT: 24       \        hi ; i)Tz(Disconnecting: client sent invalid JSON r
   INTr7  zReceived unrecognized signal: rM  z&Ignoring invalid message from client: r  r  r  r_  rD   r`  ra  )r2  r  r0  r   rv  loadsJSONDecodeErrorr&  r_   r(  r  _complete_anyr{  )
rT   r  payloadr  r  r_  rD   r`  ra  r  s
   &         r   r  _PdbServer._read_reply+  sb    !!!..))+C**S/
 ***sz* L +,,,,//5&

<VHE
 ' -  ! ! ! #	D #	D"%+f"%+f	! !..t6JEJJ5J1 JJ?uEF? '' 

EcWMNs   F! !1Gc                   V P                   '       d   V P                  pMdV^ 8X  d   V P                  WW44      # V P                  V4      ^ ,          pV'       d    \	        V RV,           V P                  4      pMV P                  pV! WW44      # )r   	complete_)r/  r^  r  r0  rd  )rT   r_  rD   r`  ra  compfuncr   s   &&&&&  r   r  _PdbServer._complete_anyY  sz    ++H{))$fEE..&q)C"4s):D<P<PQ//F33r   c                Z   V P                  4        Ve   Wn        V P                  '       d%   V P                  \        V P                  4      4       R pV'       g   V P                  e(    V P                  RRR7      pV P                  V4       K=  V P                  '       gP    V P                  '       d   RMRpV P                  V P                  VR7      pV P                  P                  V4       V P                  P                  ^ 4      pV P                  V4      pV P                  V4      pV P!                  W%4      pK  V P#                  4        R #   \         d    T P                  R4        L\         d    T P                  R4       R T n         ELi ; i  \         d    Rp Li ; i)	Nz>>> r  rL  z
KeyboardInterruptz!
*exit from pdb interact command*r  r)  r7  )preloopintror   r_   r/  r  _run_in_python_replr(  r  rI  r  r   re  r8  r,  r1  postcmdpostloop)rT   r  stopr  r  rD   s   &&    r   rz  _PdbServer.cmdlooph  sR   J:::LLTZZ)##/	4 OO6OLE ,,U3==="*.*@*@*@JeE OO4;;eOLE $$U+==$$Q'D;;t$D;;t$D<<+D/ ) 8LL!67 0LL!EF+/D(0   "!E"s6   *E #F 5!F F1F:FFF*)F*c                l   < \         SV `  4        V P                  '       d   V P                  4        R # R # r&   )r   r  quittingdetach)rT   r   s   &r   r  _PdbServer.postloop  s%    ===KKM r   c                    R V n         V P                  '       d)   R\        n         V P                  P                  4        R# R#   \         d     R# i ; i)FN)r  r.  r   r  r0  closer3   rS   s   &r   r  _PdbServer.detach  sK    %)C"$$&	 
  s   A AAc                0   < . V n         \        SV `	  V4      # r&   )r1  r   r3  rT   r4  r   s   &&r   r3  _PdbServer.do_debug  s     $& w$$r   c                0   < . V n         \        SV `	  V4      # r&   )r1  r   r  r  s   &&r   r  _PdbServer.do_alias  s    #% w$$r   c                0   < . V n         \        SV `	  V4      # r&   )r1  r   r  r  s   &&r   r  _PdbServer.do_unalias  s    #% w!#&&r   c                *    V P                  VR 7       R# )r  N)r{  r  s   &&r   r  _PdbServer.do_help  s    


r   c                \    Ve(   V P                  \        V4      4       V\        n        R # R # r&   )r   r  builtinsr   r  s   &&r   _interact_displayhook _PdbServer._interact_displayhook  s#    ?LLc#HJ r   c                L   \         P                  p V P                  \         n        V P                  R ,          ! VR,           4      pVf   \	        R4      h\        W0P                  R,          4       T\         n        R#    T P                  4         L!; i  T\         n        i ; i)compilerr  NIncomplete commandr   )rl   r  r  r/  r;   r$   r"  )rT   rA   r
  code_objs   &&  r   r  _PdbServer._run_in_python_repl  s     ??		/"88CO++J7EH!"677//56 /CO	OO.COs   A A? ?BB B#c                    V P                  R 4       \        \        P                  ! 4       / V P                  P
                  CV P                  P                  CR7      V n        R# )r  )r  r   N)r   r`   r  CommandCompilerr2  r7  rO  r/  r  s   &&r   r  _PdbServer.do_interact  sK     	+,#++-D$--))DT]]-C-CD 
r   c                F    \        V P                  R V P                  R7      # )F)r6  r   )r,  r0  r   rS   s   &r   r.  %_PdbServer._create_recursive_debugger  s     NN]]
 	
r   c                \     V P                  VR R7      #   \        \        3 d    Tu # i ; i)confirmrL  )r  r  r(  )rT   r   r  s   &&&r   r  #_PdbServer._prompt_for_confirmation  s4    	??&	?BB+, 	N	s    ++c                (    V P                  R 4       R# )z%remote PDB cannot restart the programN)r&  r  s   &&r   r!  _PdbServer.do_run  s    

:;r   c                   < V P                   '       dR   \        \        P                  ! 4       \        4      '       d)   R V n         \
        SV `  4       pV P                  R4       V# \
        SV `  4       # )Nr  )r/  r'   rl   rT  
SystemExitr   r"  r   )rT   rl  r   s   & r   r"  _PdbServer._error_exc  sV    Js}}
$K$K#'D '$&CLL;<J7%''r   c                   <  VP                  R 4      R,           p\        P                  ! VRR4      f   \        R4      h\        SV `  V4      #    T P                  4         R# ; i)r  r  r  r  Nr  )removeprefixr  r  r;   r   r  r"  )rT   rD   	candidater   s   && r   r  _PdbServer.default  s^    	))#.5I%%iHEM!"6777?9--	OOs   AA A$)r1  r/  r.  r0  r2  r   r  r  )NTFr  r&   )&r   r   r   r   rs   r   rA  rS  classmethodr3  r{  typingoverrider   r&  r  r  r  rz  r  r  r3  r  r  r  r  r  r  r  r.  r  r!  r  r"  r  r   rW   r   r   s   @@r   r,  r,  
  s    !* 
F 
F&P  @& __8 8 __3 3" ",G\4"H

%%
'
 D/
 __
 
 __ < J(	 	r   r,  c                      a  ] tR tRt o R tR tR tR tR tR t	]
R 4       t]
R	 4       t]
R
 4       tR tR tR tR tR tRtV tR# )
_PdbClienti  c                    Wn         R V n        RV n        RV n        RV n        RV n        W n        W0n        \        4       V n	        \        4       V n        . V n        RV n        RV n        RV n        R# )r   NFdumb)pidread_bufsignal_readsignal_writesigint_receivedraise_on_sigintserver_socketinterrupt_sockr   pdb_instancere  pdb_commandscompletion_matchesr  write_failedmultiline_block)rT   r  r  r  s   &&&&r   rs   _PdbClient.__init__  sm     $$*,EE"$
!$r   c           
        T; d$    ^8  d   R ;e   w  \         Rc ;e   w      R#    ; d    ^8  d   R ;e   w  R8X  d      R#    ; d    ^8  d   R ;e   w  R8X  d      R#     dd    ^8  d]   R ;eU   w   dO    ^8  dH   R	 ;e@   w  \         Rc ;e0   w   \         Rc ;e$   w   \        Rc ;e   w   \        Rc ;e   w       R#          \        RV 24      h)
r  Nr
   r7  r  rJ  r  r  r  r  )r_   r  rR  rP  s   &&r   rS   _PdbClient._ensure_valid_message  s     !!!35! " #""E" # #""E" #    EE!e!e	  $=cUC r   c                    V P                  V4       \        P                  ! V4      p V P                  P	                  VP                  4       R ,           4       R#   \         d    RT n         R# i ; irt  )rS  rv  rw  r  sendallrx  r3   r  ry  s   &, r   r{  _PdbClient._send*  s^    ""6*zz&)	%&&|':':'<u'DE 	% !%D	%s   0A A10A1c                Z   V P                   '       d   R V n         \        h\        P                  ! 4       pVP	                  V P
                  \        P                  4       VP	                  V P                  \        P                  4       RV P                  9  d   VP                  4        F  w  r#VP                  V P
                  8X  d=   V P
                  P                  R4       V P                   '       d   R V n         \        hK\  VP                  V P                  8X  g   Ky  V P                  P                  R4      pV ;P                  V,          un        V'       d   K  RV P                  9  g   K  RV n         R# 	  K  V P                  P                  R4      w  rVV n        WV,           # )Fru  rW  r   i @  )r  r(  	selectorsDefaultSelectorro  r  
EVENT_READr  r  selectfileobjr]  	partition)rT   selectorr  r   r   rl  r  s   &      r   	_readline_PdbClient._readline7  sA   #(D ## ,,.$**I,@,@A$,,i.B.BC4==("//+;;$"2"22$$))$/+++ 05,//	 ,
 [[D$6$66--229=DMMT)M4E$>(+" ,  #'--"9"9%"@$-yr   c                    W n         V P                  4       ;_uu_ 4        \        V4      uuR R R 4       #   + '       g   i     R # ; ir&   )r  !_sigint_raises_keyboard_interruptr  )rT   r   r  s   &&&r   
read_input_PdbClient.read_inputV  s-    .3355= 6555s	   5A	c                   V P                  VR R7      pV P                  R8X  d   V# RpV P                  R8X  d   V P                  P                  V4      ^ ,          pW@P                  9   g   VP                  4       R8X  d   V# VP                  R4      '       d"   RpVP                  V4      P                  4       p\        P                  ! VR,           RR4      e	   W2,           # R	P                  \        V4      4      p\        P                  ! VRR4      f$   VRV P                  VR
R7      ,           ,          pK=  W2,           # )F)r  r  r"   r)  r  r  r  r  r  T)r  r  r  r0  r  rG  rH  r  r  r  r  ljustr  )rT   r   r  rv  r   more_prompts   &&    r   read_command_PdbClient.read_command[  s   >::L::##--e4Q7C'''5;;=B+> $$**6299;!!%$,	8DP>! kk#f+.$$UIx@HTDOOKONNNE~r   c              #  ,  "    ^ RI pTP                  4       p TP                  T4       TP                  R8X  d   RpMRpTP                  T4       Rx  TP                  T4       R#   \         d	    Rx   R# i ; i  TP                  T4       i ; i5i)r   Neditlinezbind ^I rl_completeztab: complete)r   r   rW  rY  r   parse_and_bind)rT   r  r   r  command_strings   &&   r   readline_completion_PdbClient.readline_completiony  s     	
 !..0
	2""9-:-!6!0##N3""=1  		 ""=1s>   BA( B<A> B(A;7B:A;;B>BBc           
   #    a "   V 3R  lp\        4       pTpTp\        P                  ! 4       w  S n        S n        \        S P                  4      ;_uu_ 4        \        S P                  4      ;_uu_ 4        S P                  P                  R4       S P                  P                  R4        \        P                  ! \        P                  V4      p \        P                  ! S P                  P                  4       RR7      pRx  WBJd   \        P                  ! V4       R;S n        S n        Y2Jd&   \        P                  ! \        P                  T4       RRR4       RRR4       R#   YBJd   \        P                  ! T4       i i ; i  R;S n        S n        Y2Jd'   \        P                  ! \        P                  T4       i i ; i  + '       g   i     Ly; i  + '       g   i     R# ; i5i)c                 b   < R Sn         SP                  '       d   RSn        RSn         \        hR# r  )r  r  r(  )r*  r  rT   s   &&r   handler+_PdbClient._sigint_handler.<locals>.handler  s2    #'D ###',$',$''	 $r   F)warn_on_full_bufferN)objectrZ  
socketpairr  r  r   setblockingr  r  set_wakeup_fdfileno)rT   r  sentinelold_handlerold_wakeup_fds   f    r   _sigint_handler_PdbClient._sigint_handler  sr    	( 8 .4.?.?.A+$+d&&''1B1B)C)C((/))%0>$mmFMM7C	<$*$8$8))002,1%M  %4,,];7;; 4#4.MM&--=+ *D'' %4,,]; 5 8<; 4#4.MM&--= /' *D)C'''sf   AG2G57G	-%F4E,F"8G	G"
G2,F

F;GG	GGG/	)	G2c              #     "   V P                   '       d   R V n         \        h RV n        Rx  R V n        R#   R T n        i ; i5i)FTN)r  r(  r  rS   s   &r   r  ,_PdbClient._sigint_raises_keyboard_interrupt  s?     #(D ##	)#'D #(D 5D s    A7 	A	A  Ac           
     :   V P                  4       ;_uu_ 4        V P                  V P                  4      ;_uu_ 4        V P                  '       gF    V P	                  4       ;p'       g   M+  \        P                  ! T4      pT P                  T4       KW  RRR4       RRR4       R#   \
         d    T P                  4         K  i ; i  \        P                   d    \        R T: 2RR7        K  i ; i  + '       g   i     Li; i  + '       g   i     R# ; i)z*** Invalid JSON from remote: Tr  N)r
  r  r  r  r  r(  send_interruptrv  r  r  rw   process_payload)rT   payload_bytesr  s   &  r   rz  _PdbClient.cmdloop  s      ""$$T]]33'''-1^^-==M= >"jj7G $$W-' 4 #" ) '') ++ 88IJ"  43 #""sj   $D	C6	B')C6	,C	C6	D	'CC6	CC6		&C3/C6	2C33C6	6DD		D	c                    V P                   e:   V P                   P                  \        P                  P	                  4       4       R # \
        P                  ! V P                  \        P                  4       R # r&   )r  r  r  r  to_bytesro   killr  rS   s   &r   r  _PdbClient.send_interrupt  sI    *
 ''(>(>(@A
 GGDHHfmm,r   c                   T; dc    ^8  d\   R ;eT   w   p  \         ;QJ d    R V 4       F  '       d   K   RM	  RM! R V 4       4      '       d    \        V4      V n        R#    ; d\    ^8  dU   R ;eM   w  \        Rc;e?   w  uuu\        Rc;e/   w  p  p VR8X  d   \	        RVRR7       R# \	        VR	RR
7       R#     ; d@    ^8  d9   R ;e1   w  \        Rc;e$   w  p   V P
                  P                  V4       R#     dV    ^8  dO   R ;eG   w  \        Rc;e9   w  uuu\        Rc;e)   w  p  pVR9  d   RpWpn        V P                  V4       R#      \        RV 24      h)r  Nc              3   B   "   T F  p\        V\        4      x  K  	  R # 5ir&   rE  rF  s   & r   r,   -_PdbClient.process_payload.<locals>.<genexpr>  rI  r  FTr
   r&  rO  r  r"   )r   r  r  zUnrecognized payload rO  rK  r  rL  r)  r  )
rQ  re  r  r_   rw   r  r  r  prompt_for_replyr  )rT   r  rP  r  msg_typer4  r   r  s   &&      r   r  _PdbClient.process_payload  s      ,>>>>>>$'$5! >==SXs}=w&%D1#2T2	 >
 $###(#!!))#. $===CK#*= 33"E"
%%f-	 >
 "%:7)#DEEr   c                8     RV P                  V4      /pT P                  ! R	/ TB  R#   \         d    RR/p L%\         d    RR/p L5\         dE   p\        P
                  ! T4      R,          P                  4       p\        RTR R7        Rp?K  Rp?ii ; i)
Tr  r  r7  r  rO  r  Nr  r
   )	r  r  r(  r   r   r  rG  rw   r{  )rT   r   r  r   r  s   &&   r   r  _PdbClient.prompt_for_reply   s    	"D$5$5f$=> JJ!!  ,#U+$ ,#U+ 55c:2>DDFeS-s,   * BBBBB9BBc           	        ^ RI pV^ 8X  Ed$   . V n        V P                  R
9  d   R# VP                  4       pVP	                  4       pV P
                  '       d
   RV,           p\        V4      \        V4      ,
          pVP                  4       V,
          pVP                  4       V,
          pRRVRVRVRV//p	V P                  ! R/ V	B  V P                  '       d   R# V P                  4       p
V
'       g   R# \        P                  ! V
4      p
RV
9  d   \        R	V
 24      hV
R,          V n         V P                  V,          #   \         d     R# i ; i)r   Nz! r  r_  rD   r`  ra  rN  z&Failed to get valid completions. Got: r  r
   )r   r  r  get_line_bufferr  r  r  r  
get_endidxr{  r  r  rv  r  r  r  )rT   r_  r  r   origlinerD   offsetr`  ra  r  r  s   &&&        r   r  _PdbClient.complete  sH   A:&(D#zz!44//1H??$D### d{]SY.F((*V3F((*V3F DDff	C JJ   nn&Gjj)GG+"<WIF  '.m&<D#	**511 		s   1E EE)r  r  r  r  r  r  r  r  r  r  r  r  r  r  N)r   r   r   r   rs   rS  r{  r  r  r  r   r  r
  r  rz  r  r  r  r  r   rW   rX   s   @r   r  r    s     % <%>!
< 2 2( (> (>T 
) 
).0-F* - -r   r  c                 v   \        \        P                  ! W34      4      ;_uu_ 4       pVP                  R 4      pRRR4       V'       d   W3p	MRp	\	        XV	VR7      p
\
        P                  ! WP                  4       \        P                  e   V
P                  R4       R# WJP                  4       8w  d4   RV
P                  4       R 2pRVR 2pV
P                  RV RV 24       R# V
P                  P                  VP                  4       4       V
P                  VR7       R#   + '       g   i     L; i)	rwbN)r5  r   z)Another PDB instance is already attached.0x08XzThe target process is running a Python version that is incompatible with this PDB module.
Target process pdb protocol version: z&
Local pdb module's protocol version: )r  )r   rZ  rm  makefiler,  weakreffinalizer  r   r  r&  rA  r   r  r  r  )hostportr  r  versionsignal_raising_threadr   connr4  r5  
remote_pdb
target_ver
attach_vers   $$$$$$$      r   _connectr6  @  s    
))4,7	8	8D==' 
9
 #J
 Z0
)DE	//1	1*557<=
'#'
66@\5j\C	
 	!!("5"5"785)= 
9	8s   D((D8	c                    \        4       ;_uu_ 4       pVP                  \        \        P                  ! R4      4      4      pVP                  4       ^,          pVP                  \        P                  ! RRR7      4      p\        P                  R8H  p\        P                  ! 4       pVP                  \        P                  ! RV R\        P                   ! RP#                  V4      4       R\$        P'                  4        R	V: R
V: R24      4       VP)                  4        \*        P,                  ! VP.                  4      P0                  p\*        P2                  ! VP.                  V\,        P4                  ,          \,        P6                  ,          4       \        P8                  ! WP.                  4       VP;                  4       w  rVP                  \        V	4      4       V'       d?   VP;                  4       w  rVP                  \        V4      4       VP=                  R4       MRp\?        W	V4      PA                  4        RRR4       R#   + '       g   i     R# ; i)	localhostwF)delete_on_closewin32z~
                import pdb, sys
                pdb._connect(
                    host="localhost",
                    port=zK,
                    frame=sys._getframe(1),
                    commands=r  z,
                    version=z,,
                    signal_raising_thread=z,
                    colorize=z$,
                )
                N)r8  r   )!r   enter_contextr   rZ  create_servergetsocknametempfileNamedTemporaryFilerl   platformr   r   r   r  dedentrv  rw  r8   r,  rA  r  ro   statr  st_modechmodS_IROTHS_IRGRPremote_execacceptr  r  rz  )r  r  r4  serverr/  connect_scriptuse_signal_threadr   	orig_modeclient_sockr   r  s   &&          r   attachrO  k  s   	$$F(()9:;
 !!#A&,,''UC
  LLG3))+OO   "jj8)<=> ?'88:; <++<*? @&\ *	
  	GGN//088	
$$i$,,&>&MN001  GK01 &N 78&&u-!N3^4<<>[ 
s   H4II"	c                 *    \        V \        4       4      # r&   )_post_mortemr   )r  s   &r   post_mortemrR    s     35!!r   c                    V f&   \         P                  ! 4       pVe   VP                  p V e%   \        V \        4      '       d   V P                  f   \        R4      hVP                  4        VP                  R V 4       R # )NzAA valid traceback must be passed if no exception is being handled)rl   rT  r  r'   r  r   r.  rV  )r  r  r   s   && r   rQ  rQ    sn     	ymmo?!!AyZ=11aoo6M 6 7 	7 T1%r   c                  8    \        \        P                  4       R # r&   )rR  rl   last_excr
   r   r   pmrV    s    r   zimport x; x.main()c                  $    \        \        4       R # r&   )r   TESTCMDr
   r   r   testrY    s	    Lr   c                  8    ^ RI p V P                  \        4       R# rh   )pydocpagerr  )r[  s    r   r   r     s    	KKr   a.  Debug the Python program given by pyfile. Alternatively,
an executable module or package to debug can be specified using
the -m switch. You can also attach to a running Python process
using the -p option with its PID.

Initial commands are read from .pdbrc files in your home directory
and in the current directory, if they exist.  Commands supplied with
-c are executed after commands from .pdbrc files.

To let the script run until an exception occurs, use "-c continue".
To let the script run up to a given line X in the debugged file, use
"-c 'until X'".c                  H    \        R 4       \        P                  ! ^4       R# )zError: The specified process cannot be attached to due to insufficient permissions.
See the Python documentation for details on required privileges and troubleshooting:
https://docs.python.org/3.14/howto/remote_debugging.html#permission-requirements
N)rw   rl   rx   r
   r   r   exit_with_permission_help_textr^    s     
	]
 HHQKr   c            
      >   ^ RI p V P                  R\        V P                  RRR7      pVP	                  RRR. R	R
RR7       VP                  4       w  r#V'       gX   VP	                  RRRR7       VP	                  RR\        RRR7       VP                  4        \        P                  ! ^4       W#3# V^ ,          R8X  g   V^ ,          R8X  d[   VP	                  RR\        RRR7       VP                  4       w  r#V'       d$   VP                  RRP                  V4       24       W#3# V^ ,          R8X  dJ   VP	                  RRRR7       VP                  VR,          4      pVP                  Vn        VR,          pW#3# V^ ,          R8X  d.   VP                  ^ 4       V'       g   VP                  R4       W#3# V^ ,          P                  R4      '       dE   \!        \"        P$                  ! R V4      4      pVP                  RRP                  V4       24       W#3# )r   NzC%(prog)s [-h] [-c command] (-m module | -p pid | pyfile) [args ...]FT)usagedescriptionformatter_classallow_abbrevcolorz-cz	--commandre  r3  r  z4pdb commands to execute as if given in a .pdbrc file)actionr  metavardestr   z-mmodule)rf  rg  z-pz--pidzattach to the specified PID)r~  r   r  zunrecognized arguments: r  :Nr]   N:r]   NNz--zmissing script or module to run-c                 $    V P                  R 4      # )ri  )rH  )r  s   &r   <lambda>parse_args.<locals>.<lambda>$  s    !,,s:Kr   )argparseArgumentParser_usageRawDescriptionHelpFormatteradd_argumentparse_known_argsr  
print_helprl   rx   r&  r8   
parse_argsrh  r8  rH  rI   	itertools	takewhile)rm  parseroptsr)  
opt_moduleinvalid_argss         r   rt  rt    s    $$S << % F k(BPY`jS  U ((*JD 	D(BD':Waef4 :3 
aDDGw.D':Waef,,.
LL3CHHTN3CDE& :% 
aD 	D(B&&tBx0
 ''Bx : 
aDLL:; : 
a		C	 	 I//0KTRS/0F/GHI :r   c            	         \        4       w  r\        V R R4      e$    \        V P                  V P                  4       R# \        V RR4      e   V P                  p\        V4      pM?VP                  ^ 4      pVP                  R4      '       d   \        V4      pM\        V4      pV.V,           \        P                  R&   \        RRRR7      pVP                   P#                  V P                  4         VP$                  ! V4       TP:                  '       d   R# \)        R4       K5    \
         d   p\        4         Rp?R# Rp?ii ; i  \&         dG    \)        R	TR
4       \)        RRP+                  \        P                  R,          4      ,           4        L\,         d#   p\)        RRR7       \)        T4        Rp?LRp?i\.         d   p\0        P2                  ! T\4        P6                  ! 4       R7       \)        R4       \)        R4        TP8                  ! RT4        Rp?EL$  \&         dM    \)        R	TR
4       \)        RRP+                  \        P                  R,          4      ,           4         Rp?EK  i ; iRp?ii ; i)r  Nrh  z.pyzr  clir   Tr'  
Restartingzwith arguments:rw  r  r  z/The program exited via sys.exit(). Exit status:r   )r   z2Uncaught exception. Entering post mortem debuggingz1Running 'cont' or 'step' will restart the programz*The program finished and will be restarted)rt  rd  rO  r  r  PermissionErrorr^  rh  r   r8  r  r   rf   rl   r  r   r   r  r  r	   rw   r8   r  r  r   print_exceptionr   r   rV  r7  )rx  r)  r   r   rr   r)  s         r   mainr  +  s   JDtUD!-	-488T]]+ 		x	&	2{{t$xx{==  %F"4(F&4-CHHQK 5,
>CKKt}}%
	HHV$ ###:;W  	-*,,	-0  	1,(9:$#((2,//0 	CM!HH 		%%a)2H2H2JKFGEFa(( lF,=>dSXXchhrl334		sn    D( 5E (E3
EEAJ
J
$J
%GJ
J
AJH++AJ9JJJJ
r   )r   rV  r   r  r   r"  r  rR  r   r   r   )NN)r
   r&   )Zro   r6   r.   rl   r   r   r   r   ri  rv  rC  r  r  rn  r  ra  r  rZ  r  r  rC  r,  r  r?  r  r1   ru  r   r4   r  rj  r   _pyrepl.utilsrC  
contextlibr   r   r   r   warningsr   r   r	   __all__r    rG   rO   r_   rQ   r[   rf   r   r   InteractiveConsoler   r  r   r   r   r   r   r   r  _help_order_commandrd  rG  r  r   r  r   r"  r  r%  r,  r  r6  rO  rR  rQ  rV  rX  rY  r   ro  r^  rt  r  r   r)  r
   r   r   <module>r     sp  H 
 	 	 
 
 
 
                           9 9  	i 	P">C  6
% 6
r"
% "
J#
" #
L$T44 $ 
  
a#L#''377 a#LJG !%'.08:ACL')35;=CEL 	  # %* ,6 8> @J 		 	 	 $	 &.	 09	 ;F	
 	
 
 '
 )0
 28K  73 0199??AFJJ  s}}$$$GX
*6$(= =t ="ID I4 I"Y Yx
B BJ
(*V/?h"&& 
;z1<j zHHJ r   