;ς
ΞΡAHc           @   sS   d  Z  d k Z d k Z d k Z e i i   Z e a	 d   Z
 e i d e
  d S(   sζ    Debug a script (like %run -d) in IPython process, Using WinPdb

Usage:

%wdb test.py
    run test.py, with a winpdb breakpoint at start of the file 
    
%wdb pass
    Change the password (e.g. if you have forgotten the old one)
Nc         C   sK  | i   o t GHd Sn | i   d j o6 t d  } | t i d <d GHt o	 d GHn d Sn t i	 i
 |  } t i	 i |  o t i i d |   n t ox t i i d t  } | t j o4 d k } | i d  GHt d  } | t i d <n d	 GHt i | d
 d t a n t i |  d GHt i d |  d S(   s   Debug a script (like %run -d) in IPython process, Using WinPdb
    
    Usage:
    
    %wdb test.py
        run test.py, with a winpdb breakpoint at start of the file 
        
    %wdb pass
        Change the password (e.g. if you have forgotten the old one)
        
    Note that after the script has been run, you need to do "Go" (f5) 
    in WinPdb to resume normal IPython operation.
    Ns   passs#   Enter new winpdb session password: s   winpdb_passs   Winpdb password changeds3   You need to restart IPython to use the new passwords   %%wdb: file %s does not existsΧ               Winpdb sessions need a password that you use for attaching the external
            winpdb session. IPython will remember this. You can change the password later 
            by '%wpdb pass'
            s!   Starting rpdb2 in IPython processs   timeouti    sJ   It is time to attach with WinPdb (launch WinPdb if needed, File -> Attach)s   %run (   s   args   strips   __doc__s	   raw_inputs   passwds   ips   dbs   rpdb_starteds   oss   paths   abspaths   isfiles   IPythons   ipapis
   UsageErrors   gets   Nones   textwraps   dedents   rpdb2s   start_embedded_debuggers   Trues   set_temp_breakpoints   magic(   s   selfs   args   passwds   textwraps   path(    (    sN   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipy_winpdb.pys   wdb_f   s8      		
s   wdb(   s   __doc__s   oss   IPython.ipapis   IPythons   rpdb2s   ipapis   gets   ips   Falses   rpdb_starteds   wdb_fs   expose_magic(   s   ips   wdb_fs   rpdb2s   IPythons   os(    (    sN   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipy_winpdb.pys   ?
   s   				4