triadalinx.blogg.se

Atom python runner
Atom python runner













Pdb ( completekey = 'tab', stdin = None, stdout = None, skip = None, nosigint = False, readrc = True ) ¶ If you want toĪccess further features, you have to do this yourself: class pdb. Pdb class and calling the method of the same name. The run* functions and set_trace() are aliases for instantiating the Traceback is given, it uses the one of the exception that is currentlyīeing handled (an exception must be being handled if the default is to beĮnter post-mortem debugging of the traceback found in post_mortem ( traceback = None ) ¶Įnter post-mortem debugging of the given traceback object.

atom python runner

Header is printed to the console just before debugging begins.Ĭhanged in version 3.7: The keyword-only argument header.

Atom python runner code#

This is useful to hard-codeĪ breakpoint at a given point in a program, even if the code is not set_trace ( *, header = None ) ¶Įnter the debugger at the calling stack frame. The debugger prompt appears as soon as the function When runcall() returns, it returns whatever theįunction call returned. runcall ( function, * args, ** kwds ) ¶Ĭall the function (a function or method object, not a string) with the Otherwise this function is similar to run(). When runeval() returns, it returns the value of theĮxpression. runeval ( expression, globals = None, locals = None ) ¶Įvaluate the expression (given as a string or a code object) under debuggerĬontrol. (See the explanation of the built-inĮxec() or eval() functions.) pdb. The optional globals and locals arguments specify theĮnvironment in which the code is executed by default the dictionary of the Statement using step or next (all these commands areĮxplained below). Set breakpoints and type continue, or you can step through the The debugger prompt appears before any code is executed you can run ( statement, globals = None, locals = None ) ¶Įxecute the statement (given as a string or a code object) under debuggerĬontrol. The module defines the following functions each enters the debugger in a

atom python runner

test () Traceback (most recent call last):įile "./mymodule.py", line 4, in test test2 ()įile "./mymodule.py", line 3, in test2 print ( spam ) NameError: spam > pdb. import pdb > import mymodule > mymodule.













Atom python runner