ÿØÿà JFIF    ÿÛ „  ( %"1!%)+...383,7(-.+  -+++--++++---+-+-----+---------------+---+-++7-----ÿÀ  ß â" ÿÄ     ÿÄ H    !1AQaq"‘¡2B±ÁÑð#R“Ò Tbr‚²á3csƒ’ÂñDS¢³$CÿÄ   ÿÄ %  !1AQa"23‘ÿÚ   ? ôÿ ¨pŸªáÿ —åYõõ\?àÒü©ŠÄï¨pŸªáÿ —åYõõ\?àÓü©ŠÄá 0Ÿªáÿ Ÿå[úƒ ú®ði~TÁbqÐ8OÕpÿ ƒOò¤Oè`–RÂáœá™êi€ßÉ< FtŸI“öÌ8úDf´°å}“¾œ6  öFá°y¥jñÇh†ˆ¢ã/ÃÐ:ªcÈ "Y¡ðÑl>ÿ ”ÏËte:qž\oäŠe÷󲍷˜HT4&ÿ ÓÐü6ö®¿øþßèô Ÿ•7Ñi’•j|“ñì>b…þS?*Óôÿ ÓÐü*h¥£ír¶ü UãS炟[AÐaè[ûª•õ&õj?†Éö+EzP—WeÒírJFt ‘BŒ†Ï‡%#tE Øz ¥OÛ«!1›üä±Í™%ºÍãö]°î(–:@<‹ŒÊö×òÆt¦ãº+‡¦%ÌÁ²h´OƒJŒtMÜ>ÀÜÊw3Y´•牋4ǍýʏTì>œú=Íwhyë,¾Ôò×õ¿ßÊa»«þˆѪQ|%6ž™A õ%:øj<>É—ÿ Å_ˆCbõ¥š±ý¯Ýƒï…¶|RëócÍf溪“t.СøTÿ *Ä¿-{†çàczůŽ_–^XþŒ±miB[X±d 1,é”zEù»& î9gœf™9Ð'.;—™i}!ôšåîqêÛ٤ёý£½ÆA–àôe"A$˝Úsäÿ ÷Û #°xŸëí(l »ý3—¥5m! rt`†0~'j2(]S¦¦kv,ÚÇ l¦øJA£Šƒ J3E8ÙiŽ:cÉžúeZ°€¯\®kÖ(79«Ž:¯X”¾³Š&¡* ….‰Ž(ÜíŸ2¥ª‡×Hi²TF¤ò[¨íÈRëÉ䢍mgÑ.Ÿ<öäS0í„ǹÁU´f#Vß;Õ–…P@3ío<ä-±»Ž.L|kªÀê›fÂ6@»eu‚|ÓaÞÆŸ…¨ááå>åŠ?cKü6ùTÍÆ”†sĤÚ;H2RÚ†õ\Ö·Ÿn'¾ ñ#ºI¤Å´%çÁ­‚â7›‹qT3Iï¨ÖÚ5I7Ë!ÅOóŸ¶øÝñØôת¦$Tcö‘[«Ö³šÒ';Aþ ¸èíg A2Z"i¸vdÄ÷.iõ®§)¿]¤À†–‡É&ä{V¶iŽ”.Ó×Õÿ û?h¬Mt–íª[ÿ Ñÿ ÌV(í}=ibÔ¡›¥¢±b Lô¥‡piη_Z<‡z§èŒ)iÖwiÇ 2hÙ3·=’d÷8éŽ1¦¸c¤µ€7›7Ø ð\á)} ¹fËí›pAÃL%âc2 í§æQz¿;T8sæ°qø)QFMð‰XŒÂ±N¢aF¨…8¯!U  Z©RÊ ÖPVÄÀÍin™Ì-GˆªÅËŠ›•zË}º±ŽÍFò¹}Uw×#ä5B¤{î}Ð<ÙD é©¤&‡ïDbàÁôMÁ." ¤‡ú*õ'VŽ|¼´Úgllº¼klz[Æüï÷Aób‡Eÿ dÑ»Xx9ÃÜ£ÁT/`¼¸vI±Ýµ·Ë‚“G³þ*Ÿû´r|*}<¨îºœ @¦mÄ’M¹”.œ«Y–|6ÏU¤jç¥ÕÞqO ˜kDÆÁ¨5ÿ š;ÐЦ¦€GÙk \ –Þ=â¼=SͧµªS°ÚÍpÜãQűÀõ¬?ÃÁ1Ñ•õZà?hóœ€ L¦l{Y*K˜Ù›zc˜–ˆâ ø+¾ ­-Ök¥%ùEÜA'}ˆ><ÊIè“bpÍ/qÞâvoX€w,\úªò6Z[XdÒæ­@Ö—€$òJí#é>'°Ú ôª˜<)4ryÙ£|óAÅn5žêŸyÒäMÝ2{"}‰–¤l÷ûWX\l¾Á¸góÉOÔ /óñB¤f¸çñ[.P˜ZsÊË*ßT܈§QN¢’¡¨§V¼(Üù*eÕ“”5T¨‹Âê¥FŒã½Dü[8'Ò¥a…Ú¶k7a *•›¼'Ò·\8¨ª\@\õ¢¦íq+DÙrmÎ…_ªæ»ŠÓœ¡¯’Ré9MÅ×D™lælffc+ŒÑ,ý™ÿ ¯þǤ=Å’Á7µ÷ÚÛ/“Ü€ñýã¼àí¾ÕÑ+ƒ,uµMâÀÄbm:ÒÎPæ{˜Gz[ƒ¯«® KHà`ߨŠéí¯P8Aq.C‰ à€kòpj´kN¶qô€…Õ,ÜNŠª-­{Zö’æû44‰sŽè‰îVíRœÕm" 6?³D9¡ÇTíÅꋇ`4«¸ÝÁô ï’ýorqКÇZ«x4Žâéþuïf¹µö[P ,Q£éaX±`PÉÍZ ¸äYúg üAx ’6Lê‚xÝÓ*äQ  Ï’¨hÍ =²,6ï#rÃ<¯–£»ƒ‹,–ê•€ aÛsñ'%Æ"®ÛüìBᝠHÚ3ß°©$“XnœÖ’î2ËTeûìxîß ¦å¿çÉ ðK§þ{‘t‚Ϋ¬jéîZ[ ”š7L¥4VÚCE×]m¤Øy”ä4-dz£œ§¸x.*ãÊÊ b÷•h:©‡¦s`BTÁRû¾g⻩‹jø sF¢àJøFl‘È•Xᓁà~*j¯ +(ÚÕ6-£¯÷GŠØy‚<Ç’.F‹Hœw(+)ÜÜâÈzÄäT§FߘãÏ;DmVœ3Àu@mÚüXÝü•3B¨òÌÁÛ<·ÃÜ z,Ì@õÅ·d2]ü8s÷IôÞ¯^Ç9¢u„~ëAŸï4«M? K]­ÅàPl@s_ p:°¬ZR”´›JC[CS.h‹ƒïËœ«Æ]–÷ó‚wR×k7X‰k›‘´ù¦=¡«‰¨¨Â')—71ó’c‡Ðúµ `é.{§p¹ój\Ž{1h{o±Ý=áUÊïGÖŒõ–-BÄm+AZX¶¡ ïHðæ¥JmÙ;…䡟ˆ¦ ° äšiÉg«$üMk5¤L“’çÊvïâï ,=f“"íἊ5ô¬x6{ɏžID0e¸vçmi'︧ºð9$ò¹÷*£’9ÿ ²TÔ…×>JV¥}Œ}$p[bÔ®*[jzS*8 ”·T›Í–ñUîƒwo$áè=LT™ç—~ô·¤ÈÚ$榍q‰„+´kFm)ž‹©i–ËqÞŠ‰à¶ü( ‚•§ •°ò·‡#5ª•µÊ﯅¡X¨šÁ*F#TXJÊ ušJVÍ&=iÄs1‚3•'fý§5Ñ<=[íÞ­ PÚ;ѱÌ_~Ä££8rÞ ²w;’hDT°>ÈG¬8Á²ÚzŽ®ò®qZcqJêäÞ-ö[ܘbň±çb“ж31²n×iƒðÕ;1¶þÉ ªX‰,ßqÏ$>•î íZ¥Z 1{ç൵+ƒÕµ¥°T$§K]á»Ûï*·¤tMI’ÂZbŽÕiÒ˜}bÓ0£ª5›¨ [5Ž^ÝœWøÂÝh° ¢OWun£¤5 a2Z.G2³YL]jåtì”ä ÁÓ‘%"©<Ôúʰsº UZvä‡ÄiÆÒM .÷V·™ø#kèýiíÌ–ª)µT[)BˆõÑ xB¾B€ÖT¨.¥~ð@VĶr#¸ü*åZNDŽH;âi ],©£öØpù(šºãö¼T.uCê•4@ÿ GÕÛ)Cx›®0ø#:ÏðFÒbR\(€€Ä®fã4Þ‰Fä¯HXƒÅ,†öEÑÔÜ]Öv²?tLÃvBY£ú6Êu5ÅAQ³1‘’¬x–HŒÐ‡ ^ ¸KwJôÖŽ5×CÚ¨vÜ«/B0$×k°=ðbÇ(Ï)w±A†Á† 11Í=èQšµ626ŒÜ/`G«µ<}—-Ö7KEHÈÉðóȤmݱû±·ø«Snmá=“䫚mݱŸ¡¶~ó·“äUóJæúòB|E LêŽy´jDÔ$G¢þÐñ7óR8ýÒ…Ç› WVe#·Ÿ p·Fx~•ݤF÷0Èÿ K¯æS<6’¡WШ; ´ÿ ¥Êø\Òuî†åÝ–VNœkÒ7oòX¨Á­Ø÷FÎÑä±g÷ÿ M~Çî=p,X´ ÝÌÚÅ‹’ÃjÖ.ØöÏñ qïQ¤ÓZE†° =6·]܈ s¸>v•Ž^Ý\wq9r‰Î\¸¡kURÒ$­*‹Nq?Þª*!sŠÆ:TU_u±T+øX¡ ®¹¡,ÄâÃBTsÜ$Ø›4m椴zÜK]’’›Pƒ @€#â˜`é¹=I‡fiV•Ôî“nRm+µFPOhÍ0B£ €+¬5c v•:P'ÒyÎ ‰V~‚Ó†ÖuókDoh$å\*ö%Ю=£«…aȼ½÷Û.-½VŒŠ¼'lyî±1¬3ó#ÞE¿ÔS¤gV£m›=§\û"—WU¤ÚǼÿ ÂnÁGŒÃ ‚õN D³õNÚíŒÕ;HôyÄÈ©P¹Ä{:?R‘Ô¨âF÷ø£bÅó® JS|‚R÷ivýáâ€Æé¡è³´IئÑT!§˜•ت‚¬â@q€wnïCWÄ@JU€ê¯m6]Ï:£âx'+ÒðXvÓ¦Úm=–´7œ $ì“B£~p%ÕŸUþ« N@¼üï~w˜ñø5®—'Ôe»¤5ã//€ž~‰Tþ›Å7•#¤× Íö pÄ$ùeåì*«ÓŠEØWEÈsßg ¦ûvžSsLpºÊW–âµEWöˬH; ™!CYõZ ÃÄf æ#1W. \uWâ\,\Çf j’<qTbên›Î[vxx£ë 'ö¨1›˜ÀM¼Pÿ H)ƒêêŒA7s,|F“ 꺸k³9Ìö*ç®;Ö!Ö$Eiž•¹ÒÚ†ýóéÝû¾ÕS®ó$’NÝäŸz¤5r¦ãÄÃD÷Üø!°ø‡Ô&@m™Ì^Ãä­d q5Lnÿ N;.6½·N|#ä"1Nƒx“ã<3('&ñßt  ~ªu”1Tb㫨9ê–›–bìd$ߣ=#ÕãÒmU¯eí$EFù5ýYô櫨æì™Ç—±ssM]·á¿0ÕåJRÓªîiƒ+O58ÖñªŠÒx" \µâá¨i’¤i —Ö ” M+M¤ë9‚‰A¦°Qõ¾ßøK~¼Ã‘g…Ö´~÷Ï[3GUœÒ½#…kàÔ®Ò”‰³·dWV‰IP‰Ú8u¹”E ÖqLj¾êÕCBš{A^Âß;–¨`¯¬ìö ˼ ×tìø.tƐm*n¨y4o&Àx¥n¦×î‡aupáÛj8¿m›è¶ã!o½;ß0y^ý×^EÑ¿ÒjzŒ­)vÚÑnÄL …^ªô× ‡—‚3k Îý­hï]içå–îÏ*÷ñþ»Ô CÒjøjÍznˆ´ ¹#b'Fô‹ ‰v¥'’à'T´ƒHýÍ%M‰ ƒ&ÆÇŒï1 ‘ –Þ ‰i¬s žR-Ÿ kЬá¬7:þ 0ŒÅÒÕ/aÙ¬ÃÝ#Úøœ ©aiVc‰. ¹¦ãµ” ›Yg¦›ÆÎýº°f³7ƒhá·¸­}&D9¡ÂsÉÙÞèŠõØàC™¨ñbFC|´Ü(ŸƒÚÒ-%»'a Ì¿)ËÇn¿úÿ ÞŽX…4ÊÅH^ôΑí@ù¹Eh¶“L8Çjù ¼ÎåVªóR©Ï5uà V4lZß®=€xÖŸ–ÑÈ ÷”¨°¾__yM1tÉ?uÆþIkÄgæ@þ[¢†°XÃJ£j·:nkÅ¢u ‘}âGzö­/IµèЬ¼48q¦F°ŽR¼=ûì{´¯RýicS ÕÛ íNtÍÙï£,w4rêì®»~x(©Uñ§#Ñ&œÕ¤>ÎåÍÓ9’Ö{9eV­[Öjâ²ãu]˜å2›qÑšÕJç0€sÄ|Êëè0튔bÁ>“{×_F`Ø©ºê:µä,v¤ðfc1±"«ÔÍän1#=· Âøv~H½ÐßA¾¿Ü€Óš]Õ; I¾÷ç‚Qi†î¹9ywÔKG˜áñ zQY—§ÃÕZ07§X‚ Áh;ÁM)iÌCH-¯T‘ë|A0{Ò½LÚ–TâÖkÜ’dÀ“rmm»”جPF³ÖcbE§T€ÒxKºû’Ó®7±²(\4ŽÃ¸Uu@j™yĵ;³µ!Á¢b.W¤=mõ´êµK k ¸K^ÜÛ#p*Ü14qkZç5ïë †°5Ï%ÍÛ<Õ¤×Ô¥ê†C Õ´¼ú$ƒÖ“”]Ù¬qÞÚ[4©ý!ûÏ—Áb쳐XµA¬â~`›Çr¸8ìùÝ䫦<>ä÷«?xs´ÇÑ /á;¹øüÊÈÙà{"@Žïzâ¬[âß‚ U_<ÇŸ½4èN˜ú61®qŠu ¦þF£»äJ_ˆÙÎ~ ÞAã–݄ϗrŠD;xTž‘ô`É«…suãO`?³à™ô Lý#Íc5öoæØ‚y´´÷«ZR§<&JÇ+éâô´€i!Àˆ0æAoàðLèÖ-2ŸõW.’t^–(KÁmHµV@xÜÇy®Ñø­â^:Ú3w· 7½¹°ñ¸â¹®:',«Mœ—n­Á+Ãbš LÈ‘ÄnRÓÅœ%¦²‰¨ùQ:¤f‚ "PÕtô¸…cæl…&˜Ú˜Ôkv‹ž+vŠ,=¢v­6—Xy*¥t£«<™:“aîϲ=¦6rO]XI¿Œ÷¤zÚ­›¶ 6÷”w\d ü~v®ˆÌk«^m<ÿ ¢‰Õ\)ùºŽ;… lîÙÅEŠ®cѾ@vnMÏ,¼“ñ•ŽBxðÃzãÇç%3ˆ"}Ù•Åî> BÉú;Ò]V+P˜F_´ßé> Øše|ï‡ÄOmFæÇ ãqÞ$/xÐx­z`ï9"œÜij‚!7.\Td…9M‡•iŽ‹¾‘50ÞŽn¥ß4ÉôO ¹*í^QêËÜÇÌ8=ާs‰'ÂëÙ«á%Pú[O †ÅP¯Vsް.‰,kc¶ ¬A9n˜XÎ-ÞšN["¹QÕ‰ƒMýÁߺXJæÍaLj¾×Ãmã¾ãÚ uñÒþåQô¦¥ /ÄUx:‚ÍÜ’ Đ©ØÝ3V¨‰ÕnÐ6ó*óúK­«…c ¯U òhsý­jóÔj#,ímŒRµ«lbïUTŒÑ8†Ä0œÏr`ð¡¬É Ї ë"À² ™ 6¥ f¶ ¢ÚoܱԷ-<Àî)†a¶ž'Ú»¨TXqØæ¶÷YÄHy˜9ÈIW­YÀuMFë ºÏ’AqÌ4·/Ú †ô'i$øä­=Ä Ý|öK×40è|È6p‘0§)o¥ctî§H+CA-“ xØ|ÐXАç l8íºð3Ø:³¤¬KX¯UÿÙ U ^"@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZGdddeZddddd d d d d g ZddZddZddZGdddeZdZGdddejejZedk rfd ddddddddd d!d"d#d$d%d&d'd(dd)d*d+d,d-d.d/d0d1d2d3d4d5d6d7g"ZeD]"Zeeed8ejd97Zq2eejj7Z[[dJd:dZ dKd;dZ!dd?d Z$dLd@d Z%dAdZ&dBZ'dCdDZ(dEd Z)dFZ*dGdHZ+e,dIkrddl-Z-e-+dS)Ma The Python Debugger Pdb ======================= To use the debugger in its simplest form: >>> import pdb >>> pdb.run('') The debugger's prompt is '(Pdb) '. This will stop in the first function call in . Alternatively, if a statement terminated with an unhandled exception, you can use pdb's post-mortem facility to inspect the contents of the traceback: >>> >>> import pdb >>> pdb.pm() The commands recognized by the debugger are listed in the next section. Most can be abbreviated as indicated; e.g., h(elp) means that 'help' can be typed as 'h' or 'help' (but not as 'he' or 'hel', nor as 'H' or 'Help' or 'HELP'). Optional arguments are enclosed in square brackets. Alternatives in the command syntax are separated by a vertical bar (|). A blank line repeats the previous command literally, except for 'list', where it lists the next 11 lines. Commands that the debugger doesn't recognize are assumed to be Python statements and are executed in the context of the program being debugged. Python statements can also be prefixed with an exclamation point ('!'). This is a powerful way to inspect the program being debugged; it is even possible to change variables or call functions. When an exception occurs in such a statement, the exception name is printed but the debugger's state is not changed. The debugger supports aliases, which can save typing. And aliases can have parameters (see the alias help entry) which allows one a certain level of adaptability to the context under examination. Multiple commands may be entered on a single line, separated by the pair ';;'. No intelligence is applied to separating the commands; the input is split at the first ';;', even if it is in the middle of a quoted string. If a file ".pdbrc" exists in your home directory or in the current directory, it is read in and executed as if it had been typed at the debugger prompt. This is particularly useful for aliases. If both files exist, the one in the home directory is read first and aliases defined there can be overridden by the local file. This behavior can be disabled by passing the "readrc=False" argument to the Pdb constructor. Aside from aliases, the debugger is not directly programmable; but it is implemented as a class from which you can derive your own debugger class, which you can make as fancy as you like. Debugger commands ================= Nc@seZdZdZdS)RestartzBCauses a debugger to be restarted for the debugged python program.N)__name__ __module__ __qualname____doc__rr/usr/lib/python3.8/pdb.pyrVsrrunpmPdbrunevalrunctxruncall set_trace post_mortemhelpc Cstdt|}z t|}Wntk r6YdSX|@t|ddD],\}}||rJ|||fW5QRSqJW5QRXdS)Nzdef\s+%s\s*[(])start)recompileescapeopenOSError enumeratematch)funcnamefilenameZcrefplinenolinerrr find_function]s  &r cCsXt|\}}t|r,|j|jkr,|dfSt|r>|dfSt||d|dfS)Nr)inspectZ findsourceZisframe f_globalsf_localsZismoduleZgetblock)objlinesrrrrgetsourcelinesjs  r&cCs8tt|}||D]\}}||kr|SqdSNr)listdisZfindlinestartsreverse)codeZlastiZ linestartsirrrr lasti2linenoss   r-c@seZdZdZddZdS)_rstrz#String that doesn't quote its repr.cCs|SNrselfrrr__repr__~sz_rstr.__repr__N)rrrrr2rrrrr.|sr.z -> c@seZdZdZdddZddZd d Zd d Zd dZddZ ddZ ddZ ddZ ddZ ddZddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,Zd-d.Zd/d0Zd1d2Zd3d4Zd5d6ZeZdd8d9Zd:d;ZeZ eZ!eZ"dd?Z%d@dAZ&dBdCZ'eZ(dDdEZ)eZ*dFdGZ+eZ,dHdIZ-eZ.dJdKZ/e/Z0eZ1eZ2dLdMZ3e3Z4e3Z5dNdOZ6dPdQZ7e7Z8dRdSZ9e9Z:dTdUZ;e;ZdXdYZ?e?Z@dZd[ZAeAZBd\d]ZCeCZDd^d_ZEeEZFZGd`daZHeHZIdbdcZJeZKdddeZLeLZMeLZNdfdgZOdhdiZPePZQdjdkZReRZSdldmZTddndoZUdpdqZVdrdsZWeZXeZYeZZdtduZ[e[Z\dvdwZ]e]Z^dxdyZ_eZ`dd{d|Zad}d~ZbeZcddZdeZeddZfddZgddZhddZiddZjddZkddddddgZlddZmenfddZoddZpepZqddZrddZsddZtddZuddZvdS)r NtabFTc Cs>tjj||dtj||||td|r6d|_d|_i|_ i|_ d|_ d|_ i|_ zddl}|dWntk rYnXd|_||_g|_|rz,ttjd}|j|W5QRXWntk rYnXz$td }|j|W5QRXWntk rYnXi|_i|_i|_d|_d|_dS) N)skipzpdb.Pdbrz(Pdb) Fz `@#$%^&*()=+[{]}\|;:'",<>?z~/.pdbrcz.pdbrc)bdbBdb__init__cmdCmdsysauditZ use_rawinputpromptaliases displaying mainpyfile_wait_for_mainpyfile tb_linenoreadlineZset_completer_delims ImportError allow_kbdintnosigintrcLinesrospath expanduserextendrcommandscommands_dopromptcommands_silentcommands_defining commands_bnum) r1 completekeystdinstdoutr4rFZreadrcrCZrcFilerrrr8sF  z Pdb.__init__cCs*|jr t|d|||dS)Nz- Program interrupted. (Use 'cont' to resume).)rEKeyboardInterruptmessageset_stepr)r1Zsignumframerrrsigint_handlers  zPdb.sigint_handlercCstj||dSr/)r6r7resetforgetr0rrrrYs z Pdb.resetcCs&d|_g|_d|_d|_|jdSr')rstackcurindexcurframerBclearr0rrrrZs z Pdb.forgetcCsh||||\|_|_|rDt|jj|j}||j|j<|j }q|j|jd|_ |j j |_ | Sr')rZZ get_stackr[r\r-tb_framef_codetb_lastirBtb_nextr]r#curframe_locals execRcLines)r1ftbrrrrsetups  z Pdb.setupcCsd|js dS|j}|g|_|r`|}|r|ddkr||r|jt|7_dSqdS)Nr#T)rGr*popstriponecmdreversed)r1rGrrrrrds  zPdb.execRcLinescCs.|jr dS||r*|d||ddS)znThis method is called when there is the remote possibility that we ever need to stop in this function.Nz--Call--)rAZ stop_hererU interaction)r1rWZ argument_listrrr user_calls   z Pdb.user_callcCsH|jr.|j||jjks$|jdkr(dSd|_||rD||ddS)z;This function is called when we stop or break at this line.rNF)rAr@canonicr` co_filenamef_lineno bp_commandsrm)r1rWrrr user_lines z Pdb.user_linecCst|ddr|j|jkr|j}d|_|j}||d|j|D]}||q@||_|j|sr||j|j |j |r| | dSdS)zCall every command that was set for the current active breakpoint (if there is one). Returns True if the normal interaction function must be called, False otherwise. currentbpFrNr) getattrrtrLlastcmdrgrkrNprint_stack_entryr[r\rM_cmdlooprZ)r1rWrtZ lastcmd_backrrrrrrs"      zPdb.bp_commandscCs.|jr dS||jd<|d||ddS)z7This function is called when a return trap is set here.N __return__z --Return--)rAr#rUrm)r1rWZ return_valuerrr user_returns   zPdb.user_returncCsh|jr dS|\}}}||f|jd<|s2|tkr2dnd}|d|t||df|||dS)zoThis function is called if an exception occurs, but only if we are to stop at or just below this level.NZ __exception__z Internal r5z%s%s)rAr# StopIterationrU tracebackformat_exception_onlyrjrm)r1rWexc_infoexc_type exc_value exc_tracebackprefixrrruser_exception's zPdb.user_exceptioncCsBzd|_|d|_Wq>Wqtk r:|dYqXqdS)NTFz--KeyboardInterrupt--)rEcmdlooprTrUr0rrrrx;sz Pdb._cmdloopcCs^|j|j}|rZ|D]>\}}||}||k r||kr|||<|d|||fqdS)Nzdisplay %s: %r [old: %r])r?getr]items_getval_exceptrU)r1r?exprZoldvalueZnewvaluerrrpreloopHs z Pdb.preloopcCsttjr6zttjtjWntk r.YnXdt_|||rN|dS||j|j | |dSr/) r _previous_sigint_handlersignalSIGINT ValueErrorrgrZrwr[r\rx)r1rWr}rrrrmUs zPdb.interactioncCs|dk r|t|dS)z{Custom displayhook for the exec in default(), which prevents assignment of the _ variable in the builtins. N)rUrepr)r1r$rrr displayhookgszPdb.displayhookc Cs|dddkr|dd}|j}|jj}zdt|ddd}tj}tj}tj}z(|jt_|jt_|jt_t|||W5|t_|t_|t_XWn4t dd}| t j |d YnXdS)Nr! zZsingler{)rcr]r"rr;rSrRrexecrerrorr}r~rj) r1rlocalsglobalsr+Z save_stdoutZ save_stdinZsave_displayhookrrrrdefaultos(  z Pdb.defaultcCs|s |S|}|d|jkr|j|d}d}|ddD] }|dt||}|d7}q@|dd|dd}|}q|ddkr|d}|dkr||d d}|j ||d| }|S) z*Handle alias expansion and ';;' separator.rrN%z%* aliasz;;r) rjsplitr>replacestrjoinfindlstripcmdqueueappendrstrip)r1rargsZiiZtmpArgZmarkernextrrrprecmds(     z Pdb.precmdcCs"|jstj||S||SdS)zInterpret the argument as though it had been typed in response to the prompt. Checks whether this line is typed at the normal prompt or in a breakpoint command list definition. N)rOr9r:rkhandle_command_def)r1rrrrrksz Pdb.onecmdcCs||\}}}|sdS|dkr0d|j|j<dS|dkrBg|_dS|j|j}|rf||d|n ||zt|d|}Wntk r|j}YnX|j |j krd|j |j<g|_dSdS) z8Handles one command line during command list definition.NZsilentTendrrdo_F) Z parselinerNrPrrLrruAttributeErrorrrcommands_resumingrM)r1rr9argZcmdlistfuncrrrrs,      zPdb.handle_command_defcCst||jddS)NfileprintrSr1msgrrrrUsz Pdb.messagecCstd||jddS)Nz***rrrrrrrsz Pdb.errorcCs|drgSz|||||}Wntk r>g}YnXt|d}|D]H}tj|rr||dqRtj |rR| drR||dqR|S)N):,*/).pyz.pywr) rjendswith_complete_expression ExceptionglobrHrIisdirrisfilelower)r1textrbegidxendidxZretglobsfnrrr_complete_locations  zPdb._complete_locationcsfddttjjDS)Ncs.g|]&\}}|dk rt|rt|qSr/)r startswith).0r,bprrr sz*Pdb._complete_bpnumber..)rr6 Breakpoint bpbynumberr1rrrrrrr_complete_bpnumberszPdb._complete_bpnumberc s|js gS|jj|j}dkrdz,|d}ddD]}t||}qDWnttfk rrgYSXddddfddt|DSfdd| DSdS)N.rrr{cs"g|]}|dr|qS)r{rrn)dottedrrrrsz,Pdb._complete_expression..csg|]}|r|qSrrrrrrrs ) r]r"rcrruKeyErrorrrdirkeys)r1rrrrnsr$partr)rrrrrs   zPdb._complete_expressioncCs,|sttjjd}n&z t|}Wn|dYdSX||_||jkrj|j||j||j |f}nd}g|j|<d|j|<d|j |<|j }d|_ d|_ zzz | Wnht k r|r|d|j|<|d|j|<|d|j |<n|j|=|j|=|j |=|d YnXW5d|_ ||_ XdS) a4commands [bpnumber] (com) ... (com) end (Pdb) Specify a list of commands for breakpoint number bpnumber. The commands themselves are entered on the following lines. Type a line containing just 'end' to terminate the commands. The commands are executed when the breakpoint is hit. To remove all commands from a breakpoint, type commands and follow it immediately with end; that is, give no commands. With no bpnumber argument, commands refers to the last breakpoint set. You can use breakpoint commands to start your program up again. Simply use the continue command, or step, or any other command that resumes execution. Specifying any command resuming execution (currently continue, step, next, return, jump, quit and their abbreviations) terminates the command list (as if that command was immediately followed by end). This is because any time you resume execution (even with a simple next or step), you may encounter another breakpoint -- which could have its own command list, leading to ambiguities about which list to execute. If you use the 'silent' command in the command list, the usual message about stopping at a breakpoint is not printed. This may be desirable for breakpoints that are to print a specific message and then continue. If none of the other commands print anything, you will see no sign that the breakpoint was reached. rz.Usage: commands [bnum] ... endNTFz(com) rrz1command definition aborted, old commands restored)lenr6rrintrrPrLrMrNr=rOrrT)r1rZbnumZold_command_defsZ prompt_backrrr do_commandssB%       zPdb.do_commandsrc CsB|s8|jr4|dtjjD]}|r||qdSd}d}d}|d}|dkrz||dd}|d|}| d}d} |dkr|d|}| |} | s| d|dS| }||dd}z t |}Wn&t k r | d|YdSXnz t |}Wnt k rzt||jj|j} Wn|} YnXz.t| d rj| j} | j} | j} | j}| j}WnD||\} }}| s| d |YYdS| } t |}YnXYnX|s|}|||}|r>|||||| }|r| |n*|||d }|d |j|j|jfdS) ab(reak) [ ([filename:]lineno | function) [, condition] ] Without argument, list all breaks. With a line number argument, set a break at this line in the current file. With a function name, set a break at the first executable line of that function. If a second argument is present, it is a string specifying an expression which must evaluate to true before the breakpoint is honored. The line number may be prefixed with a filename and a colon, to specify a breakpoint in another file (probably one that hasn't been loaded yet). The file is searched for on sys.path; the .py suffix may be omitted. z!Num Type Disp Enb WhereNrrrrz%r not found from sys.pathzBad lineno: %s__func__zJThe specified object %r is not a function or was not found along sys.path.r{zBreakpoint %d at %s:%d) breaksrUr6rrZbpformatrrrrfind lookupmodulerrrevalr]r"rchasattrr__code__co_nameco_firstlinenorplineinfo defaultFile checklineZ set_break get_breaksnumberrr)r1rZ temporaryrrrcondZcommaZcolonrrerr+okZlnrerrrrrdo_breakWs              z Pdb.do_breakcCs"|jjj}|dkr|jr|j}|S)zProduce a reasonable default.z)r]r`rpr@)r1rrrrrs zPdb.defaultFilecCs||ddS)ztbreak [ ([filename:]lineno | function) [, condition] ] Same arguments as break, but sets a temporary breakpoint: it is automatically deleted when first hit. rN)rr1rrrr do_tbreaksz Pdb.do_tbreakc Csd}|d}t|dkr(|d}nt|dkrB|d}n|S|dkrR|S|d}|ddkr~|d=t|dkr~|S|}t|dkr|d}n||d}|r|}|d}t||} | p|S) N)NNN'rrr5rr1)rrrjrrr ) r1Z identifierZfailedZidstringidpartsZfnameitemreZanswerrrrrs.         z Pdb.lineinfocCst|dr|jjnd}t|||}|s6|ddS|}|rn|ddksn|dddksn|dddkr||d dS|S) zCheck whether specified line seems to be executable. Return `lineno` if it is, 0 if not (e.g. a docstring, comment, blank line or EOF). Warning: testing is not comprehensive. r]Nz End of filerrhrz"""z'''zBlank or comment)rr]r" linecachegetlinerUrjr)r1rrrrrrrrs  z Pdb.checklinec Csh|}|D]V}z||}Wn,tk rJ}z||W5d}~XYq X||d|q dS)zenable bpnumber [bpnumber ...] Enables the breakpoints given as a space separated list of breakpoint numbers. Nz Enabled %s)rget_bpbynumberrrenablerUr1rrr,rrrrr do_enablesz Pdb.do_enablec Csh|}|D]V}z||}Wn,tk rJ}z||W5d}~XYq X||d|q dS)aNdisable bpnumber [bpnumber ...] Disables the breakpoints given as a space separated list of breakpoint numbers. Disabling a breakpoint means it cannot cause the program to stop execution, but unlike clearing a breakpoint, it remains in the list of breakpoints and can be (re-)enabled. Nz Disabled %s)rrrrdisablerUrrrr do_disableszPdb.do_disablec Cs|dd}z |d}Wntk r0d}YnXz||d}WnHtk rf|dYnXtk r}z||W5d}~XYn.X||_|s|d|jn|d|jdS)a#condition bpnumber [condition] Set a new condition for the breakpoint, an expression which must evaluate to true before the breakpoint is honored. If condition is absent, any existing condition is removed; i.e., the breakpoint is made unconditional. rrNrBreakpoint number expectedz#Breakpoint %d is now unconditional.z$New condition set for breakpoint %d.) r IndexErrorrrjrrrrUr)r1rrrrrrrr do_condition$s   zPdb.do_conditionc Cs|}zt|d}Wnd}YnXz||d}WnHtk rb|dYnvtk r}z||W5d}~XYnLX||_|dkr|dkrd|}nd}|d||j fn|d|j dS) aignore bpnumber [count] Set the ignore count for the given breakpoint number. If count is omitted, the ignore count is set to 0. A breakpoint becomes active when the ignore count is zero. When non-zero, the count is decremented each time the breakpoint is reached and the breakpoint is not disabled and any associated condition evaluates to true. rrrNz %d crossingsz 1 crossingz%Will ignore next %s of breakpoint %d.z-Will stop next time breakpoint %d is reached.) rrrjrrrrignorerUr)r1rrcountrrZcountstrrrr do_ignore?s,   z Pdb.do_ignorec Cs|stz td}Wntk r(d}YnX|}|dkrpddtjjD}||D]}|d|q\dSd|kr| d}|d|}||d d}z t |}Wnt k rd |}YnX| ||}| ||}|r||n|D]}|d|qdS|} | D]\}z||}Wn.t k r^}z||W5d}~XYnX|||d|qdS) a=cl(ear) filename:lineno cl(ear) [bpnumber [bpnumber...]] With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). With a filename:lineno argument, clear all breaks at that line in that file. zClear all breaks? Zno)yZyescSsg|] }|r|qSrr)rrrrrrpsz Pdb.do_clear..z Deleted %sNrrzInvalid line number (%s))inputEOFErrorrjrr6rrZclear_all_breaksrUrrrrZ clear_breakrrrZclear_bpbynumber) r1rZreplyZbplistrr,rrrZ numberlistrrrdo_clearbsF           z Pdb.do_clearcCs |dS)zw(here) Print a stack trace, with the most recent frame at the bottom. An arrow indicates the "current frame", which determines the context of most commands. 'bt' is an alias for this command. N)print_stack_tracerrrrdo_wheresz Pdb.do_wherecCs^d|krt|jks nt||_|j|jd|_|jj|_||j|jd|_dSr') rr[AssertionErrorr\r]r#rcrwr)r1rrrr _select_frames   zPdb._select_framecCsz|jdkr|ddSzt|p"d}Wn$tk rL|d|YdSX|dkr\d}ntd|j|}||dS)zu(p) [count] Move the current frame count (default one) levels up in the stack trace (to an older frame). rz Oldest frameNrInvalid frame count (%s))r\rrrmaxr r1rrZnewframerrrdo_ups  z Pdb.do_upcCs|jdt|jkr"|ddSzt|p,d}Wn$tk rV|d|YdSX|dkrpt|jd}ntt|jd|j|}||dS)zd(own) [count] Move the current frame count (default one) levels down in the stack trace (to a newer frame). rz Newest frameNr r)r\rr[rrrminr rrrrdo_downs z Pdb.do_downcCsh|rRz t|}Wn$tk r4|d|YdSX||jjkrV|ddSnd}||j|dS)aNunt(il) [lineno] Without argument, continue execution until the line with a number greater than the current one is reached. With a line number, continue execution until a line with a number greater or equal to that is reached. In both cases, also stop when the current frame returns. Error in argument: %rNz7"until" line number is smaller than current line numberr)rrrr]rqZ set_until)r1rrrrrdo_untils   z Pdb.do_untilcCs |dS)zs(tep) Execute the current line, stop at the first possible occasion (either in a function that is called or in the current function). r)rVrrrrdo_stepsz Pdb.do_stepcCs||jdS)zxn(ext) Continue execution until the next line in the current function is reached or it returns. r)Zset_nextr]rrrrdo_nexts z Pdb.do_nextcCs<|r4ddl}tjdd}||t_|tjdd<tdS)arun [args...] Restart the debugged python program. If a string is supplied it is split with "shlex", and the result is used as the new sys.argv. History, breakpoints, actions and debugger options are preserved. "restart" is an alias for "run". rNr)shlexr;argvrr)r1rrZargv0rrrdo_runs  z Pdb.do_runcCs||jdS)zPr(eturn) Continue execution until the current function returns. r)Z set_returnr]rrrr do_return s z Pdb.do_returncCs>|js2zttj|jt_Wntk r0YnX|dS)z]c(ont(inue)) Continue execution, only stop when a breakpoint is encountered. r)rFrrrXr rrZ set_continuerrrr do_continueszPdb.do_continuec Cs|jdt|jkr"|ddSz t|}Wntk rL|dYnnXz:||j_|j|jd|f|j|j<||j|jWn0tk r}z|d|W5d}~XYnXdS)aj(ump) lineno Set the next line that will be executed. Only available in the bottom-most frame. This lets you jump back and execute code again, or jump forward to skip code that you don't want to run. It should be noted that not all jumps are allowed -- for instance it is not possible to jump into the middle of a for loop or out of a finally clause. rz)You can only jump within the bottom frameNz)The 'jump' command requires a line numberrzJump failed: %s) r\rr[rrrr]rqrw)r1rerrrdo_jump%s   z Pdb.do_jumpcCstd|jj}|j}t|j|j|j}d|j |_ | dzt |j |||fWn<tk rtdd}|tj|d YnX| dt|j|j|_dS)zdebug code Enter a recursive debugger that steps through the code argument (which is an arbitrary expression or statement to be executed in the current environment). Nz(%s) zENTERING RECURSIVE DEBUGGERrr{zLEAVING RECURSIVE DEBUGGER)r;settracer]r"rcr rQrRrSr=rjrU call_tracingr rrrr}r~Ztrace_dispatchrv)r1rrrprrrrdo_debugBs    z Pdb.do_debugcCsd|_|dS)z[q(uit) exit Quit from the debugger. The program being executed is aborted. Tr)_user_requested_quitset_quitrrrrdo_quitYsz Pdb.do_quitcCs|dd|_|dS)z=EOF Handles the receipt of EOF as a command. r5Tr)rUr!r"rrrrdo_EOFds z Pdb.do_EOFcCs|jj}|j}|j|j}|jtj@r.|d}|jtj@rB|d}t |D]>}|j |}||krx| d|||fqJ| d|fqJdS)zHa(rgs) Print the argument list of the current function. rz%s = %rz%s = *** undefined ***N) r]r`rc co_argcountco_kwonlyargcountco_flagsr!Z CO_VARARGSZCO_VARKEYWORDSrange co_varnamesrU)r1rcodictrr,namerrrdo_argsms     z Pdb.do_argscCs.d|jkr |t|jdn |ddS)zQretval Print the return value for the last return of a function. ryzNot yet returned!N)rcrUrrrrrr do_retval~s z Pdb.do_retvalcCsPzt||jj|jWStdd}|tj|d YnXdS)Nrr{) rr]r"rcr;rrr}r~rj)r1rrrrr_getvals z Pdb._getvalcCsrz2|dkrt||jj|jWSt||j|jWSWn:tdd}tj|d }t d|YSXdS)Nrr{z** raised %s **) rr]r"rcr#r;rr}r~rjr.)r1rrWrrrrrrszPdb._getval_exceptcCs*z|t||Wn YnXdS)z@p expression Print the value of the expression. N)rUrr/rrrrdo_pszPdb.do_pcCs,z|t||Wn YnXdS)zHpp expression Pretty-print the value of the expression. N)rUpprintZpformatr/rrrrdo_ppsz Pdb.do_ppcCsfd|_d}|r|dkrz^d|krX|d\}}t|}t|}||krr||}nt|}td|d}Wqtk r|d|YdSXn0|jdks|dkrtd|jj d}n |jd}|dkr|d}|jj j }| |}zZt ||jj}|||d||||jt|t||_t||krH|d Wntk r`YnXdS) al(ist) [first [,last] | .] List source code for the current file. Without arguments, list 11 lines around the current line or continue the previous listing. With . as argument, list 11 lines around the current line. With one argument, list 11 lines starting at that line. With two arguments, list the given range; if the second argument is less than the first, it is a count. The current line in the current frame is indicated by "->". If an exception is being debugged, the line where the exception was originally raised or propagated is indicated by ">>", if it differs from the current line. r(Nrrrr z[EOF])rvrrrjr rrrr]rqr`rpget_file_breaksrgetlinesr" _print_linesrrrUrT)r1rZlastfirstr breaklistr%rrrdo_lists@         z Pdb.do_listc Csp|jjj}||}zt|j\}}Wn2tk rX}z||WYdSd}~XYnX|||||jdS)z\longlist | ll List the whole source code for the current function or frame. N)r]r`rpr5r&rrr7)r1rrr9r%rrrrr do_longlists   zPdb.do_longlistc Csvz||}WnYdSXzt|\}}Wn6ttfk rd}z||WYdSd}~XYnX|||dS)z^source expression Try to get source code for the given object and display it. N)r/r&r TypeErrorrr7)r1rr$r%rrrrr do_sources z Pdb.do_sourcerc Cs|r|j}|j|d}nd}}t||D]|\}}t|d} t| dkrV| d7} ||krh| d7} n| d7} ||kr| d7} n||kr| d7} || d|q,d S) zPrint a range of lines.r{rrBz->z>> N) rqrBrrrrjustrrUr) r1r%rrrWZcurrent_linenoZ exc_linenorrsrrrr7s    zPdb._print_linescCsz||}WnYdSXd}z |j}Wntk r@YnX|rZ|d|jdSz |jj}Wntk rzYnX|r|d|jdS|jtkr|d|j|j fdS|t|dS)z;whatis arg Print the type of the argument. Nz Function %sz Method %sz Class %s.%s) r/rrrUrr __class__typerr)r1rvaluer+rrr do_whatiss.   z Pdb.do_whatiscCsl|s8|d|j|jiD]}|d|q"n0||}||j|ji|<|d||fdS)zdisplay [expression] Display the value of the expression if it changed, each time execution stops in the current frame. Without expression, list all display expressions for the current frame. zCurrently displaying:z%s: %rzdisplay %s: %rN)rUr?rr]rr setdefault)r1rrvalrrr do_display;s  zPdb.do_displaycCsT|r@z|j|ji|=WqPtk r<|d|YqPXn|j|jddS)zundisplay [expression] Do not display the expression any more in the current frame. Without expression, clear all display expressions for the current frame. znot displaying %sN)r?rr]rrrirrrr do_undisplayNs zPdb.do_undisplaycsfdd|j|jiDS)Ncsg|]}|r|qSrr)rrrrrr^s z*Pdb.complete_undisplay..)r?rr]rrrrcomplete_undisplay]szPdb.complete_undisplaycCs |jj|j}tjd|ddS)zinteract Start an interactive interpreter whose global namespace contains all the (global and local) names found in the current scope. z *interactive*)ZlocalN)r]r"rcr+interact)r1rrrrr do_interactaszPdb.do_interactcCs|}t|dkrHt|j}|D]}|d||j|fq&dS|d|jkrt|dkr|d|d|j|dfnd|dd|j|d<dS)acalias [name [command [parameter parameter ...] ]] Create an alias called 'name' that executes 'command'. The command must *not* be enclosed in quotes. Replaceable parameters can be indicated by %1, %2, and so on, while %* is replaced by all the parameters. If no command is given, the current alias for name is shown. If no name is given, all aliases are listed. Aliases may be nested and can contain anything that can be legally typed at the pdb prompt. Note! You *can* override internal pdb commands with aliases! Those internal commands are then hidden until the alias is removed. Aliasing is recursively applied to the first word of the command line; all other words in the line are left alone. As an example, here are two useful aliases (especially when placed in the .pdbrc file): # Print instance variables (usage "pi classInst") alias pi for k in %1.__dict__.keys(): print("%1.",k,"=",%1.__dict__[k]) # Print instance variables in self alias ps pi self rz%s = %sNrr)rrsortedr>rrUr)r1rrrrrrrdo_aliasjs "z Pdb.do_aliascCs6|}t|dkrdS|d|jkr2|j|d=dS)z9unalias name Delete the specified alias. rN)rrr>)r1rrrrr do_unaliass  zPdb.do_unaliascsfdd|jDS)Ncsg|]}|r|qSrr)rarrrrs z(Pdb.complete_unalias..)r>rrrrcomplete_unaliasszPdb.complete_unaliasrrrrr#rcCs4z|jD]}||qWntk r.YnXdSr/)r[rwrT)r1 frame_linenorrrrs  zPdb.print_stack_tracecCs6|\}}||jkrd}nd}|||||dS)Nz> z )r]rUZformat_stack_entry)r1rSZ prompt_prefixrWrrrrrrws  zPdb.print_stack_entrycCs|stj||Sz@zt|d|}|WWStk rNt|d|}YnXWn"tk rt|d|Yn0Xtjjdkr|d|dS| |j dS)zh(elp) Without argument, print the list of available commands. With a command name as argument, print help about that command. "help pdb" shows the full pdb documentation. "help exec" gives help on the ! command. Zhelp_rzNo help for %rrzJNo help for %r; please do not run Python with -OO if you need command helpN) r9r:do_helprurrr;flagsoptimizerUrr)r1rZtopicZcommandrrrrTs   z Pdb.do_helpcCs||jjpddS)a(!) statement Execute the (one-line) statement in the context of the current stack frame. The exclamation point can be omitted unless the first word of the statement resembles a debugger command. To assign to a global variable you must always prefix the command with a 'global' command, e.g.: (Pdb) global list_options; list_options = ['-l'] (Pdb) r5N)rU help_execrrjr0rrrrWs z Pdb.help_execcCs tdSr/)rr0rrrhelp_pdbsz Pdb.help_pdbcCstj|rtj|r|Stjtjd|}tj|rP|||jkrP|Stj|\}}|dkrp|d}tj|r|StjD]>}tj |rt |}qtj||}tj|r|SqdS)zHelper function for break/clear parsing -- may be overridden. lookupmodule() translates (possibly incomplete) file or module name into an absolute file name. rr5rN) rHrIisabsexistsrr;ror@splitextislinkreadlink)r1rrerootZextdirnamefullnamerrrrs"      zPdb.lookupmodulec Csrd|_d|_ddl}||\}}}||j|_ddl}|j |j d|j|j |j |t d||dS)NTFr__main__)r__file__ __package__ __loader____spec__ __builtins__)rAr!runpyZ_get_module_detailsrorpr@ra__dict__r^updateparentloaderrfr )r1Z module_namergZmod_nameZmod_specr+rarrr _runmodules  zPdb._runmodulec Cstddl}|j|jd|tdd|_|||_d|_t |}d| |jf}W5QRX| |dS)Nrra)rrbrfTFzexec(compile(%r, %r, 'exec'))) rarhr^rirfrAror@r!io open_codereadr )r1rrar statementrrr _runscript s     zPdb._runscript)r3NNNFT)r)N)rN)wrrrrr8rXrYrZrgrdrnrsrrrzrrxrrmrrrrkrrUrrrrrZcomplete_commandsrrZdo_bZcomplete_breakZ complete_brZcomplete_tbreakrrrZcomplete_enablerZcomplete_disablerZcomplete_conditionrZcomplete_ignorerZdo_clZcomplete_clearZ complete_clr Zdo_wZdo_btr rZdo_urZdo_drZdo_untrZdo_srZdo_nrZ do_restartrZdo_rrZdo_cZdo_contrZdo_jr Zcomplete_debugr#Zdo_qZdo_exitr$r-Zdo_ar.Zdo_rvr/rr0r2Zcomplete_printZ complete_pZ complete_ppr:Zdo_lr;Zdo_llr=Zcomplete_sourcer7rFZcomplete_whatisrIZcomplete_displayrJrKrMrOrPrRrr line_prefixrwrTZdo_hrWrXrrlrqrrrrr s /     M ]!!.    1  ! #    whereZdownZupbreakZtbreakr^rrrZ conditionrLsteprZuntilZjumpreturnZretvalcontinuer(ZlonglistrrZppZwhatissourceZdisplayZ undisplayrLrZunaliasdebugZquitrz cCst|||dSr/)r r rprrrrrr ;scCst|||Sr/)r r )Z expressionrrrrrr >scCst|||dSr/)r rzrrrr AscOstj||Sr/)r r)rkwdsrrrrEs)headercCs,t}|dk r|||tjdSr/)r rUrr; _getframef_back)r|pdbrrrrHs cCsB|dkrtd}|dkr$tdt}||d|dS)NrzAA valid traceback must be passed if no exception is being handled)r;rrr rYrm)trrrrrPs cCsttjdSr/)rr;last_tracebackrrrrr ^szimport x; x.main()cCs ttdSr/)r TESTCMDrrrrtestfsrcCsddl}|tdSr')pydocZpagerr)rrrrrjsausage: pdb.py [-c command] ... [-m module | pyfile] [arg] ... Debug the Python program given by pyfile. Alternatively, an executable module or package to debug can be specified using the -m switch. 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 Csddl}|tjdddddg\}}|s>tttdg}d}|D]B\}}|dkrltttqJ|d kr||qJ|d krJd }qJ|d}|stj |std |d td|tjdd<|stj |tjd<t }|j |z6|r||n |||jrWqtdWqtk r\td|dtdd|Yqtk rtdddttdYqtk rttdYqttdtdtd} |d| td|dYqXqdS)Nrrzmhc:rzcommand=rF)z-hz--help)z-cz --command)z-mTzError:zdoes not existz*The program finished and will be restartedZ Restartingzwith arguments:r@rz/The program exited via sys.exit(). Exit status:)rz2Uncaught exception. Entering post mortem debuggingz1Running 'cont' or 'step' will restart the programz#Post mortem debugger finished. The z will be restarted)getoptr;rr_usageexitrrHrIrZr_r rGrKrlrqr!rr SystemExitr SyntaxErrorr} print_excrm) rZoptsrrLZ run_as_moduleZoptZoptargr@rrrrrmain}sb               rra)NN)NN)N).rrHrmrr;r9r6r)r+rr1rr!r}rrr__all__r r&r-rr.rrr7r:r Z _help_orderZ_commandrurjrWr r r rrrr rrrrrrrrrrrsC    *      C