jump into the interpreter in a script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brian Blais

    #1

    jump into the interpreter in a script

    Hello,

    I was wondering if there is a way to, within a script, jump into the interpreter.
    What I mean is something like the "keyboard" command in Matlab, where the script
    pauses and you get an interpreter prompt, where you can look at variables, change
    their values, etc. then when you exit the interpreter, the script continues from
    where it left off. Is this possible in python?


    thanks,

    Brian Blais


    --
    -----------------

    bblais@bryant.e du


  • Rick Ratzel

    #2
    Re: jump into the interpreter in a script

    pdb might help. Add this to your code:

    import pdb
    pdb.set_trace()

    Comment

    Working...