Enhanced Python Debugger
Project description
Adds functionality to the python debugger, including support for remote debugging
Installation
pip install epdb
Usage
For debugging code locally, epdb generally works the same as pdb. You can debug a program from the python interpreter:
>>> import epdb
>>> import mymodule
>>> epdb.Epdb().run('mymodule.test()')
*** NameError: name 'execfile' is not defined
> /home/wasche/git/epdb/<string>(1)<module>()
-> """
(Epdb) continue
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib64/python3.5/bdb.py", line 431, in run
exec(cmd, globals, locals)
File "<string>", line 1, in <module>
File "/home/wasche/git/epdb/mymodule.py", line 2, in test
import spam
ImportError: No module named 'spam'
You can also drop breakpoints at specific places in a program’s code by inserting:
import epdb; epdb.set_trace()
or by using the alias st:
import epdb; epbd.st()
To debug code that is either running on a remote system, or in a process that isn’t attached to your tty you can use epdb in server mode:
import epdb; epdb.serve()
By default epdb.serve() will start a simple telnet server on port 8080, but you can use the port keyword argument to use a different port:
import epdb; epdb.serve(port=8888)
You can connect to the epdb server by using epdb.connect():
>>> import epdb >>> epdb.connect()
By default epdb.connect() will attempt to connect to port 8080 on localhost. If you are debugging a process on another host or port, you can call connect with the host or port keyword arguments:
>>> import epdb >>> epdb.connect(host='some.host.com', port=8888)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file epdb-0.15.1.tar.gz.
File metadata
- Download URL: epdb-0.15.1.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f59e9d54866faad6fcbd8fcfc634b85e8fde2b045b13d10f2f8d083f6cbd2668
|
|
| MD5 |
3ca91afbee5ce1459bcc99be005cfc9c
|
|
| BLAKE2b-256 |
60d3e74d7f5f6476b6392f596750b533ff3b3897dd2ef361521661e061ce7766
|
File details
Details for the file epdb-0.15.1-py2.py3-none-any.whl.
File metadata
- Download URL: epdb-0.15.1-py2.py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4208e310f4ed000b92d40e4fafad3ba67a295e6ecdaae0a3d64380c8c8fac629
|
|
| MD5 |
72d248834a378ba10466a3e5ef488fee
|
|
| BLAKE2b-256 |
ee6d39b6e602e5bab391f921b752a4e131e10d0dd734a5734b4293ae12e32e36
|
File details
Details for the file epdb-0.15.1-py2-none-any.whl.
File metadata
- Download URL: epdb-0.15.1-py2-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
749c7bc9c23e01f1e5238684178b7d61c323647e063ec7f3603678552856e559
|
|
| MD5 |
3ae7dd99adea78969f9bbd7ea148e6e8
|
|
| BLAKE2b-256 |
b29427737a2a97422d2bfb70982f06b5b3fdab66b8221a978b752ce938092a50
|