Display source code in Sublime Text 2 while debugging with pdb.
Project description
- This module is used to hook up pdb, the python debugger, with Sublime Text 2,
enabling it to display the debugged source code during a pdb session.
After downloading and unpacking the package, you should install the helper module using:
$ python setup.py install
Next you need to hook up pdb with this module by add the following to your .pdbrc file, which you can create in your home directory if it’s not there already:
from PdbSublimeTextSupport import preloop, precmd pdb.Pdb.preloop = preloop pdb.Pdb.precmd = precmd
Next, you need to install the SublimeProtocol Sublime Text 2 plugin. Download this and place the file createsublimelink.py in the Sublime Text 2 Packages/ directory (go to the menu item Sublime Text 2 -> Preferences -> Browse Packages in Sublime Text to find) it.
Finally, ensure that you have the subl command line tool has been installed as per these instructions.
Afterwards Sublime Text should get started automatically whenever you enter a debug session. The current source line will be displayed simultaneously while stepping through the code.
This module is based on PdbTextMateSupport by Andi Zeidler and others.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for PdbSublimeTextSupport-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e045e011be0934156eb178942a8272d49399931e34466119752fa693897753f |
|
MD5 | a46977dce30eb92a0f2898502885175b |
|
BLAKE2b-256 | cb103f1034a7d1eaa1952fe6ff98047d7b8054f3d17e92ca972fa44ec3c81c7f |