PyDev.Debugger | Sources for the debugger used in PyDev, PyCharm and VSCode Python | Code Editor library
kandi X-RAY | PyDev.Debugger Summary
kandi X-RAY | PyDev.Debugger Summary
Sources for the debugger used in PyDev, PyCharm and VSCode Python
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start a process .
- Patch subprocess arguments .
- Inject a kernel .
- Search for a pattern in the given process .
- Indent a continuation line .
- Run an executable .
- Add a breakpoint .
- Get the refererers info .
- Set up client and server paths .
- Parse the grammar file .
PyDev.Debugger Key Features
PyDev.Debugger Examples and Code Snippets
Community Discussions
Trending Discussions on PyDev.Debugger
QUESTION
pydev debugger
is a python debugger used by pydev
and pycharm
. It seems much more powerful than pdb
. Its code is available (https://github.com/fabioz/PyDev.Debugger), and it is easy to install through pip. The package name is pydevd
.
However, there is no information on how to use it from python code (outside of pydev or pycharm IDE). The documentation is completely lacking.
Does anyone know how to use it? I would like to do something like that:
...ANSWER
Answered 2017-Apr-09 at 10:58well, I agree that the docs are lacking, but the idea is mostly that you'd use it from within the IDE, not programmatically.
The only public API you should use programmaticallyis pydevd.settrace()
, which is the API which will setup a breakpoint at the place it's put programmatically (meaning the debugger will stop at that line -- the same effect of having pdb.set_trace()
-- and that same API will also connect to the frontend for remote debugging if it's still not connected (i.e.: http://www.pydev.org/manual_adv_remote_debugger.html -- code: https://github.com/fabioz/PyDev.Debugger/blob/a4a58179dab9f9fb93559066f0ef22ac59c59e04/pydevd.py#L1065).
Now, currently the only frontends are PyDev and PyCharm, there's no frontend that gives you a command line... the whole communication happens by connecting to a thread in the debugger backend through a socket (again, there are no real docs, but the code should be easy to read on what the socket accepts and the protocol is pretty simple: https://github.com/fabioz/PyDev.Debugger/blob/a4a58179dab9f9fb93559066f0ef22ac59c59e04/_pydevd_bundle/pydevd_process_net_command.py).
There are unit-tests in pure-python code which exercise that (i.e.: connect to a debugger, and issue commands through sockets -- https://github.com/fabioz/PyDev.Debugger/blob/a4a58179dab9f9fb93559066f0ef22ac59c59e04/tests_python/debugger_unittest.py), so, it shouldn't be that hard to actually do a command-line frontend to it -- it's just that no one had interest on it until now, but if someone would like to contribute a command-line frontend to PyDev.Debugger, it'd be welcome ;)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PyDev.Debugger
You can use PyDev.Debugger like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page