/snap/core24/1643/usr/lib/python3.12/__pycache__
NameSizeModeActions
abc.cpython-312.pyc80550644editdlrm
aifc.cpython-312.pyc428630644editdlrm
antigravity.cpython-312.pyc10030644editdlrm
argparse.cpython-312.pyc1016820644editdlrm
ast.cpython-312.pyc1002790644editdlrm
base64.cpython-312.pyc244080644editdlrm
bdb.cpython-312.pyc373590644editdlrm
bisect.cpython-312.pyc36410644editdlrm
bz2.cpython-312.pyc151330644editdlrm
calendar.cpython-312.pyc396210644editdlrm
cgi.cpython-312.pyc402280644editdlrm
cgitb.cpython-312.pyc173320644editdlrm
chunk.cpython-312.pyc73100644editdlrm
cmd.cpython-312.pyc186190644editdlrm
code.cpython-312.pyc130510644editdlrm
codecs.cpython-312.pyc422740644editdlrm
codeop.cpython-312.pyc69160644editdlrm
colorsys.cpython-312.pyc46420644editdlrm
compileall.cpython-312.pyc204970644editdlrm
configparser.cpython-312.pyc635820644editdlrm
contextlib.cpython-312.pyc303760644editdlrm
contextvars.cpython-312.pyc2610644editdlrm
copy.cpython-312.pyc98000644editdlrm
copyreg.cpython-312.pyc74140644editdlrm
cProfile.cpython-312.pyc85930644editdlrm
crypt.cpython-312.pyc53610644editdlrm
csv.cpython-312.pyc177880644editdlrm
dataclasses.cpython-312.pyc446780644editdlrm
datetime.cpython-312.pyc4090644editdlrm
decimal.cpython-312.pyc4060644editdlrm
difflib.cpython-312.pyc754990644editdlrm
dis.cpython-312.pyc345600644editdlrm
doctest.cpython-312.pyc1056860644editdlrm
enum.cpython-312.pyc807080644editdlrm
filecmp.cpython-312.pyc146610644editdlrm
fileinput.cpython-312.pyc202800644editdlrm
fnmatch.cpython-312.pyc64950644editdlrm
fractions.cpython-312.pyc366670644editdlrm
ftplib.cpython-312.pyc426360644editdlrm
functools.cpython-312.pyc405060644editdlrm
genericpath.cpython-312.pyc68220644editdlrm
getopt.cpython-312.pyc83630644editdlrm
getpass.cpython-312.pyc68500644editdlrm
gettext.cpython-312.pyc221510644editdlrm
glob.cpython-312.pyc98410644editdlrm
graphlib.cpython-312.pyc103270644editdlrm
gzip.cpython-312.pyc320150644editdlrm
hashlib.cpython-312.pyc80870644editdlrm
heapq.cpython-312.pyc179560644editdlrm
hmac.cpython-312.pyc106980644editdlrm
imaplib.cpython-312.pyc628890644editdlrm
imghdr.cpython-312.pyc69440644editdlrm
inspect.cpython-312.pyc1334460644editdlrm
io.cpython-312.pyc41390644editdlrm
ipaddress.cpython-312.pyc907620644editdlrm
keyword.cpython-312.pyc10410644editdlrm
linecache.cpython-312.pyc64010644editdlrm
locale.cpython-312.pyc595360644editdlrm
lzma.cpython-312.pyc158550644editdlrm
mailbox.cpython-312.pyc1116180644editdlrm
mailcap.cpython-312.pyc111550644editdlrm
mimetypes.cpython-312.pyc241850644editdlrm
modulefinder.cpython-312.pyc279440644editdlrm
netrc.cpython-312.pyc89030644editdlrm
nntplib.cpython-312.pyc449390644editdlrm
ntpath.cpython-312.pyc260330644editdlrm
nturl2path.cpython-312.pyc30340644editdlrm
numbers.cpython-312.pyc139670644editdlrm
opcode.cpython-312.pyc147160644editdlrm
operator.cpython-312.pyc173640644editdlrm
optparse.cpython-312.pyc675460644editdlrm
os.cpython-312.pyc434740644editdlrm
pathlib.cpython-312.pyc620980644editdlrm
pdb.cpython-312.pyc849190644editdlrm
pickle.cpython-312.pyc761760644editdlrm
pickletools.cpython-312.pyc811280644editdlrm
pipes.cpython-312.pyc109140644editdlrm
pkgutil.cpython-312.pyc199590644editdlrm
platform.cpython-312.pyc416000644editdlrm
plistlib.cpython-312.pyc412860644editdlrm
poplib.cpython-312.pyc184460644editdlrm
posixpath.cpython-312.pyc182360644editdlrm
pprint.cpython-312.pyc294740644editdlrm
profile.cpython-312.pyc225400644editdlrm
pstats.cpython-312.pyc379220644editdlrm
pty.cpython-312.pyc73630644editdlrm
pyclbr.cpython-312.pyc148870644editdlrm
pydoc.cpython-312.pyc1429550644editdlrm
py_compile.cpython-312.pyc100780644editdlrm
queue.cpython-312.pyc147320644editdlrm
quopri.cpython-312.pyc93230644editdlrm
random.cpython-312.pyc331530644editdlrm
reprlib.cpython-312.pyc99090644editdlrm
rlcompleter.cpython-312.pyc82820644editdlrm
runpy.cpython-312.pyc143850644editdlrm
sched.cpython-312.pyc77350644editdlrm
secrets.cpython-312.pyc25560644editdlrm
selectors.cpython-312.pyc261280644editdlrm
shelve.cpython-312.pyc129130644editdlrm
shlex.cpython-312.pyc141620644editdlrm
shutil.cpython-312.pyc681130644editdlrm
signal.cpython-312.pyc44480644editdlrm
site.cpython-312.pyc290630644editdlrm
sitecustomize.cpython-312.pyc3000644editdlrm
smtplib.cpython-312.pyc482210644editdlrm
sndhdr.cpython-312.pyc107120644editdlrm
socket.cpython-312.pyc418170644editdlrm
socketserver.cpython-312.pyc342580644editdlrm
sre_compile.cpython-312.pyc6250644editdlrm
sre_constants.cpython-312.pyc6280644editdlrm
sre_parse.cpython-312.pyc6210644editdlrm
ssl.cpython-312.pyc630110644editdlrm
stat.cpython-312.pyc52310644editdlrm
statistics.cpython-312.pyc554230644editdlrm
string.cpython-312.pyc114820644editdlrm
stringprep.cpython-312.pyc251600644editdlrm
struct.cpython-312.pyc3250644editdlrm
subprocess.cpython-312.pyc791870644editdlrm
sunau.cpython-312.pyc254230644editdlrm
symtable.cpython-312.pyc187810644editdlrm
sysconfig.cpython-312.pyc300010644editdlrm
tabnanny.cpython-312.pyc121560644editdlrm
tarfile.cpython-312.pyc1233880644editdlrm
telnetlib.cpython-312.pyc284230644editdlrm
tempfile.cpython-312.pyc473390644editdlrm
textwrap.cpython-312.pyc182930644editdlrm
this.cpython-312.pyc14080644editdlrm
threading.cpython-312.pyc653460644editdlrm
timeit.cpython-312.pyc148640644editdlrm
token.cpython-312.pyc35570644editdlrm
tokenize.cpython-312.pyc247750644editdlrm
trace.cpython-312.pyc330240644editdlrm
traceback.cpython-312.pyc515230644editdlrm
tracemalloc.cpython-312.pyc269070644editdlrm
tty.cpython-312.pyc26680644editdlrm
turtle.cpython-312.pyc1846320644editdlrm
types.cpython-312.pyc149390644editdlrm
typing.cpython-312.pyc1418600644editdlrm
uu.cpython-312.pyc78160644editdlrm
uuid.cpython-312.pyc330070644editdlrm
warnings.cpython-312.pyc237920644editdlrm
wave.cpython-312.pyc320840644editdlrm
weakref.cpython-312.pyc313480644editdlrm
webbrowser.cpython-312.pyc263530644editdlrm
xdrlib.cpython-312.pyc118410644editdlrm
zipapp.cpython-312.pyc99770644editdlrm
zipimport.cpython-312.pyc244750644editdlrm
_aix_support.cpython-312.pyc47590644editdlrm
_collections_abc.cpython-312.pyc459120644editdlrm
_compat_pickle.cpython-312.pyc72210644editdlrm
_compression.cpython-312.pyc74970644editdlrm
_distutils_system_mod.cpython-312.pyc78180644editdlrm
_markupbase.cpython-312.pyc122790644editdlrm
_osx_support.cpython-312.pyc177310644editdlrm
_pydatetime.cpython-312.pyc941930644editdlrm
_pydecimal.cpython-312.pyc2278070644editdlrm
_pyio.cpython-312.pyc1102690644editdlrm
_pylong.cpython-312.pyc99830644editdlrm
_py_abc.cpython-312.pyc70540644editdlrm
_sitebuiltins.cpython-312.pyc47600644editdlrm
_strptime.cpython-312.pyc241160644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-312.pyc586510644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-312.pyc586450644editdlrm
_threading_local.cpython-312.pyc82950644editdlrm
_weakrefset.cpython-312.pyc117510644editdlrm
__future__.cpython-312.pyc47040644editdlrm
__hello__.cpython-312.pyc8700644editdlrm
Edit: /snap/core24/1643/usr/lib/python3.12/__pycache__/bdb.cpython-312.pyc (37359B)
Цi~dZddlZddlZddlZddlmZmZmZgdZeezezZ Gdde Z GddZ d Z Gd d Zd Zd ZGdde ZdZdZdZy)zDebugger basicsN) CO_GENERATOR CO_COROUTINECO_ASYNC_GENERATOR)BdbQuitBdb BreakpointceZdZdZy)rz Exception to give up completely.N)__name__ __module__ __qualname____doc__/usr/lib/python3.12/bdb.pyrr s*rrc,eZdZdZd/dZdZdZdZdZdZ d Z d Z d Z d Z d ZdZdZdZdZdZdZd0dZd/dZdZdZdZd/dZdZdZdZ d1dZdZdZ d Z!d!Z"d"Z#d#Z$d$Z%d%Z&d&Z'd'Z(d(Z)d)Z*d2d*Z+d3d+Z,d3d,Z-d-Z.d.Z/y)4raGeneric Python debugger base class. This class takes care of details of the trace facility; a derived class should implement user interaction. The standard debugger class (pdb.Pdb) is an example. The optional skip argument must be an iterable of glob-style module name patterns. The debugger will not step into frames that originate in a module that matches one of these patterns. Whether a frame is considered to originate in a certain module is determined by the __name__ in the frame globals. Ncv|r t|nd|_i|_i|_d|_|j yN)setskipbreaksfncacheframe_returning _load_breaks)selfrs r__init__z Bdb.__init__s3!%CI4   # rc|d|ddzdzk(r|S|jj|}|sMtjj |}tjj |}||j|<|S)a%Return canonical form of filename. For real filenames, the canonical form is a case-normalized (on case insensitive filesystems) absolute path. 'Filenames' with angle brackets, such as "", generated in interactive mode, are returned unchanged. <>)rgetospathabspathnormcase)rfilenamecanonics rr'z Bdb.canonic'sq sXa^+c1 1O,,""8,ggooh/Ggg&&w/G%,DLL "rc^ddl}|jd|_|jddy)z5Set values of attributes as ready to start debugging.rN) linecache checkcachebotframe _set_stopinfo)rr)s rresetz Bdb.reset8s(  4&rcz|jry|dk(r|j|S|dk(r|j||S|dk(r|j||S|dk(r|j ||S|dk(r |j S|dk(r |j S|dk(r |j St d t||j S) aODispatch a trace function for debugged frames based on the event. This function is installed as the trace function for debugged frames. Its return value is the new trace function, which is usually itself. The default implementation decides how to dispatch a frame, depending on the type of event (passed in as a string) that is about to be executed. The event can be one of the following: line: A new line of code is going to be executed. call: A function is about to be called or another code block is entered. return: A function or other code block is about to return. exception: An exception has occurred. c_call: A C function is about to be called. c_return: A C function has returned. c_exception: A C function has raised an exception. For the Python events, specialized functions (see the dispatch_*() methods) are called. For the C events, no action is taken. The arg parameter depends on the previous event. Nlinecallreturn exceptionc_call c_exceptionc_returnz*bdb.Bdb.dispatch: unknown debugging event:)quitting dispatch_line dispatch_calldispatch_returndispatch_exceptiontrace_dispatchprintrepr)rframeeventargs rr;zBdb.trace_dispatch?s0 ==  F?%%e, , F?%%eS1 1 H ''s3 3 K **5#6 6 H && & M !&& & J && & :DKH"""rc|j|s|j|r#|j||jrt|j S)a Invoke user function and return trace function for line event. If the debugger stops on the current line, invoke self.user_line(). Raise BdbQuit if self.quitting is set. Return self.trace_dispatch to continue tracing in this scope. ) stop_here break_here user_liner6rr;rr>s rr7zBdb.dispatch_linejs> >>% DOOE$: NN5 !}}Gm"""rcd|j|j|_|jS|j|s|j |sy|j r)|j jtzr |jS|j|||jrt|jS)a Invoke user function and return trace function for call event. If the debugger stops on this function call, invoke self.user_call(). Raise BdbQuit if self.quitting is set. Return self.trace_dispatch to continue tracing in this scope. N) r+f_backr;rBbreak_anywhere stopframef_codeco_flagsGENERATOR_AND_COROUTINE_FLAGS user_callr6rrr>r@s rr8zBdb.dispatch_callvs == !LLDM&& &u%)<)>ell336SS&& & uc" ==-"""rc|j|s||jk(r|jr)|jjt zr |j S ||_|j||d|_|jrt|j|ur!|jdk7r|jdd|j S#d|_wxYw)aInvoke user function and return trace function for return event. If the debugger stops on this function return, invoke self.user_return(). Raise BdbQuit if self.quitting is set. Return self.trace_dispatch to continue tracing in this scope. Nr) rB returnframerIrJrKrLr;r user_returnr6r stoplinenor,rNs rr9zBdb.dispatch_returns >>% ET-=-=$=~~%,,"7"7:W"W*** ,',$  ,'+$}}Gm~~&4??b+@""4.""" (,$s C C c|j|r]|jjtzr|dtur|d$|j |||j rt|jS|jrj||jur\|jjjtzr5|dttfvr$|j |||j rt|jS)aInvoke user function and return trace function for exception event. If the debugger stops on this exception, invoke self.user_exception(). Raise BdbQuit if self.quitting is set. Return self.trace_dispatch to continue tracing in this scope. r) rBrJrKrL StopIterationuser_exceptionr6rrI GeneratorExitr;rNs rr:zBdb.dispatch_exceptions >>% LL)),IIA-/CFN##E3/==-""" nndnn!<NN))225RRF}m<<   s +}}Gm"""rc\|y|jD]}tj||syy)z4Return True if module_name matches any skip pattern.FT)rfnmatch)r module_namepatterns ris_skipped_modulezBdb.is_skipped_modules4  yy G{G4 rc|jr+|j|jjdry||jur)|j dk(ry|j |j k\S|jsyy)z>Return True if frame is below the starting frame in the stack.r FrT)rr\ f_globalsr!rIrRf_linenorEs rrBz Bdb.stop_heresf 99%%eoo&9&9*&EF DNN ""$>>T__4 4~~rc|j|jj}||jvry|j}||j|vr(|jj }||j|vryt |||\}}|rD|j|_|r0|jr$|jt|jyy)zReturn True if there is an effective breakpoint for this line. Check for line or function breakpoint and if in effect. Delete temporary breakpoints if effective() says to. FT) r'rJ co_filenamerr_co_firstlineno effectivenumber currentbp temporarydo_clearstr)rr>r&linenobpflags rrCzBdb.break_heres << 8 89 4;; & X. .\\00FT[[22x7 T YYDN c"))n-rctd)zlRemove temporary breakpoint. Must implement in derived classes or get NotImplementedError. z)subclass of bdb must implement do_clear())NotImplementedError)rr@s rrgz Bdb.do_clears ""MNNrcd|j|jj|jvS)zEReturn True if there is any breakpoint for frame's filename. )r'rJrarrEs rrHzBdb.break_anywheres&||ELL445DDrcy)z&Called if we might stop in a function.Nr)rr> argument_lists rrMz Bdb.user_call rcy)z'Called when we stop or break at a line.NrrEs rrDz Bdb.user_linerqrcy)z&Called when a return trap is set here.Nr)rr> return_values rrQzBdb.user_return rqrcy)z$Called when we stop on an exception.Nr)rr>exc_infos rrVzBdb.user_exceptionrqrc<||_||_d|_||_y)zSet the attributes for stopping. If stoplineno is greater than or equal to 0, then stop at line greater than or equal to the stopline. If stoplineno is -1, then don't stop at all. FN)rIrPr6rR)rrIrPrRs rr,zBdb._set_stopinfos##& %rcL||jdz}|j|||y)zxStop when the line with the lineno greater than the current one is reached or when returning from current frame.Nr)r_r,)rr>ris r set_untilz Bdb.set_until$s) >^^a'F 5%0rc|jr5|jj}|r|js|j|_|j ddy)zStop after one line of code.N)rrGf_tracer;r,)r caller_frames rset_stepz Bdb.set_step,sG   //66LL$8$8'+':': $ 4&rc(|j|dy)z2Stop on the next line in or below the given frame.N)r,rEs rset_nextz Bdb.set_next8s 5$'rc|jjtzr|j|ddy|j|j|y)z)Stop when returning from the given frame.Nr)rJrKrLr,rGrEs r set_returnzBdb.set_return<s; << #@ @   udB /   u||U 3rc|tjj}|j|r'|j|_||_|j}|r'|jtj|jy)znStart debugging from frame. If frame is not specified, debugging starts from caller's frame. N) sys _getframerGr-r;r{r+r}settracerEs r set_tracez Bdb.set_traceCse =MMO**E  //EM!DMLLE  T(()rc"|j|jdd|jsftjdtj j }|r0||jur!|`|j }|r||juryyyyy)zStop only at breakpoints or when finished. If there are no breakpoints, set the system trace function to None. Nr)r,r+rrrrrGr{rEs r set_continuezBdb.set_continueRsv 4==$3{{ LL MMO**EE6M E6%6% rcl|j|_d|_d|_t j dy)zuSet quitting attribute to True. Raises BdbQuit exception in the next call to a dispatch_*() method. NT)r+rIrPr6rrrs rset_quitz Bdb.set_quitas*   Trch|jj|g}||vr|j|yy)z/Add breakpoint to breaks, if not already there.N)r setdefaultappend)rr&ri bp_linenoss r_add_to_breakszBdb._add_to_breaksrs3[[++Hb9  #   f % $rc|j|}ddl}|j||}|sd||fzS|j||t |||||}y)zSet a new breakpoint for filename:lineno. If lineno doesn't exist for the filename, return an error message. The filename should be in canonical form. rNzLine %s:%d does not exist)r'r)getlinerr) rr&rirfcondfuncnamer)r/rjs r set_breakz Bdb.set_breakxs_<<)  62.(F1CC C Hf- &)T8 DrcttjjD]\}}|j||y)aOApply all breakpoints (set in other instances) to this one. Populates this instance's breaks list from the Breakpoint class's list, which can have breakpoints set by another Bdb instance. This is necessary for interactive sessions to keep the breakpoints active across multiple calls to run(). N)rbplistkeysrrr&ris rrzBdb._load_breakss7#-"3"3"8"8": 2 Xv   & 1 2rc||ftjvr|j|j||j|s|j|=yy)aPrune breakpoints for filename:lineno. A list of breakpoints is maintained in the Bdb instance and in the Breakpoint class. If a breakpoint in the Bdb instance no longer exists in the Breakpoint class, then it's removed from the Bdb instance. N)rrrremovers r _prune_breakszBdb._prune_breakssK f Z%6%6 6 KK ! ( ( 0{{8$ H%%rc|j|}||jvrd|zS||j|vrd||fzStj||fddD]}|j |j ||y)znDelete breakpoints for filename:lineno. If no breakpoints were set, return an error message. There are no breakpoints in %szThere is no breakpoint at %s:%dN)r'rrrdeleteMer)rr&rirjs r clear_breakzBdb.clear_breaks <<) 4;; &3h> > X. .4&7II I##Hf$45a8 B KKM  8V,rc |j|}|j|j |j |j y#t$r}t|cYd}~Sd}~wwxYw)zxDelete a breakpoint by its index in Breakpoint.bpbynumber. If arg is invalid, return an error message. N)get_bpbynumber ValueErrorrhrrfiler/)rr@rjerrs rclear_bpbynumberzBdb.clear_bpbynumbersX  $$S)B  277BGG,  s8O sA A( A#A(#A(c|j|}||jvrd|zS|j|D].}tj||f}|D]}|j 0|j|=y)z`Delete all breakpoints in filename. If none were set, return an error message. rN)r'rrrr)rr&r/blistrjs rclear_all_file_breakszBdb.clear_all_file_breakss~ <<) 4;; &3h> >KK) D%%hn5E     KK !rc||jsytjD]}|s|ji|_y)z]Delete all existing breakpoints. If none were set, return an error message. zThere are no breakpointsN)rr bpbynumberr)rrjs rclear_all_breakszBdb.clear_all_breakss; {{-'' B   rc|s td t|} tj|}|td|z|S#t$rtd|zdwxYw#t$rtd|zdwxYw)zReturn a breakpoint by its index in Breakpoint.bybpnumber. For invalid arg values or if the breakpoint doesn't exist, raise a ValueError. zBreakpoint number expectedz Non-numeric breakpoint number %sNz!Breakpoint number %d out of rangezBreakpoint %d already deleted)rintrr IndexError)rr@rdrjs rrzBdb.get_bpbynumbers 9: : QXF U&&v.B : "m LL!**akk2 3 Am 9As5zA~&Aaxrcddl}ddl}|\}}|j|jj}|d|d}|jj r||jj z }n|dz }|dz }d|j vr(|j d} |dz }||j| z }|7|j|||j} | r||| jzz }|S||d z }|S) a:Return a string with information about a stack entry. The stack entry frame_lineno is a (frame, lineno) tuple. The return string contains the canonical filename, the function name or '', the input arguments, the return value, and the line of code (if it exists). rN()zz() __return__z->zWarning: lineno is None) r)reprlibr'rJraco_namef_localsr=rr^strip) r frame_linenolprefixr)rr>rir&srvr/s rformat_stack_entryzBdb.format_stack_entry's "$ v<< 8 89 & ) <<   %% %A OA T  5>> ) -B IA b! !A  $$XvuGDWtzz|++ G934 4Arc||ddl}|j}||}|jt|tr t |dd}t j|j t|||d|_ t jdy#t$rY(wxYw#d|_ t jdwxYw)zDebug a statement executed via the exec() function. globals defaults to __main__.dict; locals defaults to globals. NrzexecT) __main____dict__r- isinstancerhcompilerrr;rrr6)rcmdglobalslocalsrs rrunzBdb.runIs ? ''G >F c3 #z62C T(()  gv &!DM LL     !DM LL s$$ B BBBBB;c||ddl}|j}||}|jtj|j  t |||d|_tjdS#t$rYnwxYw d|_tjdy#d|_tjdwxYw)zDebug an expression executed via the eval() function. globals defaults to __main__.dict; locals defaults to globals. NrT) rrr-rrr;evalr6r)rexprrrrs rrunevalz Bdb.runeval_s ? ''G >F  T(() gv.!DM LL       DM LL !DM LL s$ A00 A<9B;A<<BB;c*|j|||y)z.For backwards-compatibility. Defers to run().N)r)rrrrs rrunctxz Bdb.runctxss gv&rc|jtj|jd} ||i|}d|_tjd|S#t$rY)wxYw#d|_tjdwxYw)zWDebug a single function call. Return the result of the function call. NT)r-rrr;rr6)rfuncargskwdsress rruncallz Bdb.runcallzs|  T(() %%C!DM LL     !DM LL s#A A%"A($A%%A((Br)rFNN)z: NN)0r r r r rr'r-r;r7r8r9r:r\rBrCrgrHrMrDrQrVr,ryr}rrrrrrrrrrrrrrrrrrrrrrrrrrrrrs "')#V ##,#,#> 6OE     %"1 '(4 * %"& AE 2 &"   (, 6 .D,('rrc4tjy)z>DD <<'>D'>D, T04 4990FF 99 DII7 7C ;; , ~= =C 99yy1} 9TYYOK KC rcTd|jd|jd|jS)z1Return a condensed description of the breakpoint.z breakpoint z at :)rdrr/rs r__str__zBreakpoint.__str__s+/;; 499MMrrr)r r r r rrrr staticmethodrrrrrrrrrrrrsR( D FJ-('' #)<Nrrc|js|j|jk7ryy|jj|jk7ry|j s|j|_|j |jk7ryy)aVReturn True if break should happen here. Whether a break should happen depends on the way that b (the breakpoint) was set. If it was set via line number, check if b.line is the same as the one in the frame. If it was set via function name, check if this is the right function and if it is on the first executable line. FT)rr/r_rJrr)br>s r checkfuncnamer  sm :: 66U^^ # ||qzz) ' '',~~$##u~~5 rctj||f}|D]}|jst||s|xjdz c_|j s+|j dkDr|xj dzc_c|dfcS t|j |j|j}|r+|j dkDr|xj dzc_n|dfcSy#|dfcYcSxYw)a=Return (active breakpoint, delete temporary flag) or (None, None) as breakpoint to act upon. The "active breakpoint" is the first entry in bplist[line, file] (which must exist) that is enabled, for which checkfuncname is True, and that has neither a False condition nor a positive ignore count. The flag, meaning that a temporary breakpoint should be deleted, is False only when the condiion cannot be evaluated (in which case, ignore count is ignored). If no such entry exists, then (None, None) is returned. rrTFr) rrrr rrrrr^r)rr/r> possiblesr vals rrcrc+s!!$*-I !"yy Q&  ! vvxx!|A 4y  "1665??ENNCxx!|A !"4y(5!"D   "5z!s ACC'c$eZdZdZdZdZdZy)TdbcR|jj}|sd}td||y)N???z+++ call)rJrr<)rr>rnames rrMz Tdb.user_callas$||##ET j$%rc (ddl}|jj}|sd}|j|jj}|j ||j |j}td||j |d|jy)Nrrz+++r) r)rJrr'rarr_r^r<r)rr>r)rfnr/s rrDz Tdb.user_lineesk||##ET \\%,,22 3  U^^U__E eRsDJJLArctd|y)Nz +++ returnr<)rr>retvals rrQzTdb.user_returnls  lF#rc<td||jy)Nz +++ exception)r<r)rr> exc_stuffs rrVzTdb.user_exceptionns oy) rN)r r r rMrDrQrVrrrrr`s&B$rrcRtd|dt|dz}td|y)Nzfoo(r z bar returned)r<bar)nxs rfoor rs% &!S AbD A .!rc&td|d|dz S)Nzbar(rrTr)as rrrws &!S Q3Jrc:t}|jdy)Nzimport bdb; bdb.foo(10))rr)rs rtestr${s AEE #$r)r rYrr"inspectrrr__all__rL Exceptionrrrrr rcrr rr$rrrr(s BB * ,| ;>P P+i+x x v uNuNt@0j#$ %r