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. Advertisements

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. =?Utf-8?B?UFc=?=
    Replies:
    0
    Views:
    1,086
    =?Utf-8?B?UFc=?=
    Apr 24, 2006
  2. Jon Perez

    dropping into pdb on an exception

    Jon Perez, Jun 9, 2004, in forum: Python
    Replies:
    0
    Views:
    363
    Jon Perez
    Jun 9, 2004
  3. Amit Gupta

    using pdb and catching exception

    Amit Gupta, Dec 1, 2007, in forum: Python
    Replies:
    5
    Views:
    498
    R. Bernstein
    Dec 6, 2007
  4. Amit Gupta

    unitests don't run under pdb

    Amit Gupta, Feb 20, 2008, in forum: Python
    Replies:
    4
    Views:
    299
    Gabriel Genellina
    Mar 15, 2008
  5. Jonathan Mark
    Replies:
    1
    Views:
    424
    Jonathan Mark
    Aug 4, 2008
  6. Reckoner
    Replies:
    1
    Views:
    387
    Diez B. Roggisch
    Nov 5, 2009
  7. Josef Moellers

    Palm::PDB: How to compose a PDB?

    Josef Moellers, Aug 16, 2007, in forum: Perl Misc
    Replies:
    0
    Views:
    280
    Josef Moellers
    Aug 16, 2007
  8. Íéêüëáïò Êïýñáò
    Replies:
    1
    Views:
    280
    Íéêüëáïò Êïýñáò
    Jun 4, 2013
Loading...