quantopian/qdb — 320★ on GitHub (Python). Quantopian Remote Debugger for Python
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
qdb is a debugger for python that allows users to debug code executing
on remote machine. qdb is split into three main components that may all be
running on separate hardware:
The client
The tracer
The server
The client is the user's interface to the debugger. All communication here is
through a websocket connected to the server. This client could be any type
of application. qdb provides a terminal client and emacs mode for this.
The tracer is the main debugging process. This is the actual code that the user
wishes to debug. Communication here is through a socket sending json
objects representing only the valid messages sent to the server from
the client. A single tracer may have multiple clients connected to it.
The server is the main routing station for messages between the clients and the
tracer. The server is responsible for validating that the messages from the
clients are well formed and routing them to the tracer. A single server may
manage multiple tracers, so it is responsible for making sure that connections
are routed to the proper place. The server can clean up tracer processes whose
clients have become inactive if the server manager decides. The server may also
impose authentication rules to allow or disallow some connections.
Getting started
To debug a process with qdb locally, first you must start the server process.
The easiest way to do this is to execute:
$ python -m qdb.server
which will start up a server that accepts tracer connections on port 8001, and
client connections on port 8002. There are a few options that may be passed to
the server from the command line, to see a full list, run:
$ python -m qdb.server --help
Now that you have a server running, you may run a process under qdb.
As an example, try saving the following as qdb_test.py:
from qdb import set_trace, RemoteCommandManager
def f():
in_f = True
return 'getting out of f'
def main():
set_trace(
uuid='qdb',
host='localhost',
port=8001,
cmd_manager=RemoteCommandManager(),
)
mutable_object = {}
print 'Hello world!'
f()
print mutable_object
if __name__ == '__main__':
main()
Then, invoke the program as you normally would with:
$ python qdb_test.py
Finally, you will need to connect your client to the server so that you can
actually debug the program. To connect, run the provided client found in the
client directory with:
$ qdb-cli
Before you are finished, you will need to get the output from the program, in a
seperate terminal, run:
$ tail -f /tmp/qdb/.qdb
This will be the realtime output from the debugger.
You are now ready to debug your process, issue the help command in the repl
to see a list of available commands and functions, or begin evaluating python
code in the context of the other process.
Contributions
If you would like to contribute, please see our
Contribution Requests.
Requirements
To download the requirements, you can simply issue:
$ make requirements
assuming you have pip installed. You will most likely want to install into a
virtualenv.
To view the development and normal requirements, see etc/requirements_dev.txt
and etc/requirements.txt.
Style
To ensure that changes and patches are focused on behavior changes, the qdb
codebase adheres to both PEP-8, http://www.python.org/dev/peps/pep-0008/, and
pyflakes, https://launchpad.net/pyflakes/.
The maintainers check the code using
the flake8 script, https://bitbucket.org/tarek/flake8/wiki/Home, which is
included in the etc/requirements_dev.txt.
Before submitting patches or pull requests, please ensure that running
make style and make test both pass.
Source
The source for qdb is hosted at: https://github.com/quantopian/qdb
TopGit's last sync did not record any GitHub topics for quantopian/qdb. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on quantopian/qdb?
The most recent commit recorded on quantopian/qdb was 3.2 years ago, based on the GitHub push timestamp. The repository has 114 forks — one of the better signals of community interest.
How many stars does quantopian/qdb have?
quantopian/qdb has 320 GitHub stars — refresh the page for the live number, or check github.com/quantopian/qdb. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is quantopian/qdb?
quantopian/qdb (quantopian/qdb) is a Python project on GitHub. From the project's own README: Quantopian Remote Debugger for Python
What language is quantopian/qdb written in?
quantopian/qdb is written primarily in Python. GitHub's language field is based on the largest share of bytes in the default branch.
Read full README in the tab above.
Still deciding about qdb?
One click hands the question to an AI along with this page — see what it says about qdb.