664
edits
No edit summary |
|||
| Line 37: | Line 37: | ||
pdb's built-in shell is... OK, but iPython is better. To enable iPython in the pdb shell, run this: | pdb's built-in shell is... OK, but iPython is better. To enable iPython in the pdb shell, run this: | ||
echo "alias i from IPython.Shell import IPShellEmbed as IPSh; IPSh(argv= | echo "alias i from IPython.Shell import IPShellEmbed as IPSh; IPSh(argv='')()" >> ~/.pdbrc | ||
Then in pdb, just type <code>i<enter></code> to drop into iPython in the same context. | Then in pdb, just type <code>i<enter></code> to drop into iPython in the same context. | ||
edits