staying inside pdb.py upon an exception in a program run via it

Discussion in 'Python' started by Jon Perez, Jun 6, 2004.

  1. Jon Perez

    Jon Perez Guest

    I have a script that takes command-line arguments which
    I want to debug using pdb upon an unanticipated exception.
    How do I go about doing this?

    If I do a "c:\python23\lib\pdb.py script.py blah blah" and
    do a 'cont', the exception will cause pdb.py itself to be
    exited from and there is no opportunity to inspect anything.
     
    Jon Perez, Jun 6, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Scovetta
    Replies:
    0
    Views:
    3,110
    Michael Scovetta
    Jun 4, 2003
  2. tshad
    Replies:
    7
    Views:
    445
    tshad
    Jan 4, 2005
  3. Patio87
    Replies:
    4
    Views:
    422
    Julie
    Aug 18, 2004
  4. Reckoner
    Replies:
    1
    Views:
    311
    Diez B. Roggisch
    Nov 5, 2009
  5. Josef Moellers

    Palm::PDB: How to compose a PDB?

    Josef Moellers, Aug 16, 2007, in forum: Perl Misc
    Replies:
    0
    Views:
    151
    Josef Moellers
    Aug 16, 2007
Loading...

Share This Page