PdbEditorSupport
This module is used to hook up pdb, the python debugger, with your editor. This enables it to display the debugged source code during a pdb session.
You can install with pip:
$ pip install PdbEditorSupport
Or download, unpack the package and install with:
$ python setup.py install
Next you need to hook up pdb with this module. See the next sections to see how.
Afterwards your editor should get started automatically whenever you enter a debug session. The current source line will be displayed simultaneously while stepping through the code.
Editors
Sublime Text
For Sublime Text support add this to .pdbrc:
import PdbEditorSupport PdbEditorSupport.patch(editor='sublime')
Ensure that the subl command line tool has been installed as per these instructions.
The subl command will by default called with -b filename:lineno, where filename and lineno are replaced accordingly.
You can change the default subl command by setting the command keyword option.
You can change the default arguments with the command_args keyword option.
Example with the defaults:
import PdbEditorSupport
PdbEditorSupport.patch(
editor='sublime',
command='subl',
command_args=['-b', '{filename}:{lineno}'])
TextMate
For Sublime Text support add this to .pdbrc:
import PdbEditorSupport PdbEditorSupport.patch(editor='textmate')
You can change the default TextMate application name with the application keyword option.
You can change the default url used via Apple Script with the url keyword option.
Example with the defaults:
import PdbEditorSupport
PdbEditorSupport.patch(
editor='textmate',
application='TextMate',
url='txmt://open?url=file://{filename}&line={lineno}&column=2')
Other editors
Other editors which allow opening files via the command line can be used as well.
You can use arbitrary shell commands like this:
import PdbEditorSupport
PdbEditorSupport.patch(
func='shell',
command='mycommand',
command_args=['{filename}:{lineno}'])
Acknowledgments
This module is based on PdbSublimeTextSupport by Martin Aspeli, which in turn is based on PdbTextMateSupport by Andi Zeidler and others.
Changes
0.4.0 (2018-07-31)
Better Python 2.7 support. [fschulze]
Fix nested pdb. [fschulze]
0.3.0 (2018-07-28)
Initial release after fork from PdbSublimeTextSupport and PdbTextMateSupport. [fschulze]
Metadata
Release files for PdbEditorSupport 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PdbEditorSupport-0.4.0.tar.gz | 4.0 kB | Without provenance | Details for PdbEditorSupport-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PdbEditorSupport-0.4.0-py2-none-any.whl | Python 2 | none | any | Details for PdbEditorSupport-0.4.0-py2-none-any.whl |
Total release size: 7.7 kB
Release files / PdbEditorSupport-0.4.0.tar.gz
| Download URL | PdbEditorSupport-0.4.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f931612e02c902ccd962177aaece63a93d32730b954ce19032b1d781c815642
|
|
BLAKE2b-256 checksum How to use checksums |
047a599402a1c5340dfdb6eb653097ebdea819c70cbae55a7b4351867ff9f59a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
devpi-server/4.6.0 (py2.7.15; darwin)
|
Release files / PdbEditorSupport-0.4.0-py2-none-any.whl
| Download URL | PdbEditorSupport-0.4.0-py2-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
4d6e01883f23f058292ff65ac177fa5a47d4824d9d76e279b20b16f6a2c331e8
|
|
BLAKE2b-256 checksum How to use checksums |
cd2989d46113faa0c64d89feecd9c2ae1b8ba7ba6fea5a252195ea2de8f6ae19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
devpi-server/4.6.0 (py2.7.15; darwin)
|
Security for PdbEditorSupport 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.