[manuel] [~]$ python hello.py > /home/manuel/hello.py(26)() -> for palabra in texto: (Pdb) list 21 print "Funcion: world end" 22 23 if __name__ == "__main__": 24 texto = "mi primer variable que se crea" 25 texto = texto.split() 26 -> for palabra in texto: 27 capitalize = palabra.capitalize() 28 pdb.set_trace() 29 pdb.set_trace() # hago que el programa frene en esta línea 30 hello() 31 pdb.set_trace() # y en esta (Pdb) !print texto ['mi', 'primer', 'variable', 'que', 'se', 'crea'] (Pdb) continue > /home/manuel/hello.py(26)() -> for palabra in texto: (Pdb) !print capitalize Primer (Pdb) continue > /home/manuel/hello.py(26)() -> for palabra in texto: (Pdb) !print capitalize Variable (Pdb) next > /home/manuel/hello.py(27)() -> capitalize = palabra.capitalize() (Pdb) !print capitalize Variable (Pdb) next > /home/manuel/hello.py(28)() -> pdb.set_trace() (Pdb) !print capitalize Que (Pdb) continue > /home/manuel/hello.py(26)() -> for palabra in texto: (Pdb) help Documented commands (type help ): ======================================== EOF break commands debug h l pp s up a bt condition disable help list q step w alias c cont down ignore n quit tbreak whatis args cl continue enable j next r u where b clear d exit jump p return unalias Miscellaneous help topics: ========================== exec pdb Undocumented commands: ====================== retval rv (Pdb) where > /home/manuel/hello.py(26)() -> for palabra in texto: (Pdb) whatis texto (Pdb) continue > /home/manuel/hello.py(26)() -> for palabra in texto: (Pdb) continue > /home/manuel/hello.py(26)() -> for palabra in texto: (Pdb) !print capitalize Crea (Pdb) continue > /home/manuel/hello.py(30)() -> hello() (Pdb) list 25 texto = texto.split() 26 for palabra in texto: 27 capitalize = palabra.capitalize() 28 pdb.set_trace() 29 pdb.set_trace() # hago que el programa frene en esta línea 30 -> hello() 31 pdb.set_trace() # y en esta 32 world() 33 print "Final del programa de prueba" [EOF] (Pdb) continue Funcion: hello start numero es la variable con el contenido 98 > /home/manuel/hello.py(12)hello() -> print "Funcion: hello end" (Pdb) args (Pdb) cont Funcion: hello end > /home/manuel/hello.py(32)() -> world() (Pdb) continue Funcion: world start > /home/manuel/hello.py(19)world() -> if hello(): (Pdb) !print otro_numero 32.5 (Pdb) return Funcion: hello start numero es la variable con el contenido 98 > /home/manuel/hello.py(12)hello() -> print "Funcion: hello end" (Pdb) continue Funcion: hello end la funcion hello() devolvió True Funcion: world end Final del programa de prueba [manuel] [~]$