pytrace icon indicating copy to clipboard operation
pytrace copied to clipboard

pytrace is a fast python tracer. it records function calls, arguments and return values. can be used for debugging and profiling.

Results 15 pytrace issues
Sort by recently updated
recently updated
newest added

$ pip install pytrace Downloading/unpacking pytrace Downloading pytrace-0.2.4.tar.gz Running setup.py (path:/tmp/pip_build_vagrant/pytrace/setup.py) egg_info for package pytrace Downloading/unpacking sqlalchemy (from pytrace) Downloading SQLAlchemy-1.1.5.tar.gz (5.1MB): 5.1MB downloaded Running setup.py (path:/tmp/pip_build_vagrant/sqlalchemy/setup.py) egg_info for package...

Hi, I am getting following excetion while running command pytrace. `Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pytrace", line 11, in load_entry_point('pytrace==0.2.4', 'console_scripts', 'pytrace')() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pytrace/__main__.py", line 13, in main reader_main()...

From the README: > pytrace has been tested on python 2.7 and python 3.2. (should support 2.6 and up) Version 3.2 looks outdated these days.

Hi, is there a way to trace only some methods. In my use case I want to trace roughly 5 methods only.

From the README: > The reader can filter traces using a python expressions. "a" means singular. But "expressions" is plural.

`$ pytrace main.py` ``` Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/requests/packages/__init__.py", line 27, in from . import urllib3 ImportError: cannot import name 'urllib3' During handling of the above exception, another...

The latest protobuf-c https://github.com/protobuf-c/protobuf-c/blob/master/protobuf-c/protobuf-c.h has changed its interface (for example `PROTOBUF_C_BEGIN_DECLS` is renamed to `PROTOBUF_C__BEGIN_DECLS` and there are other changes). This leads to pytrace complication failure on distributions shipping newer...

``` File "build/bdist.macosx-10.9-intel/egg/pytrace/reader/trace_walker.py", line 70, in __getitem__ File "/Users/techdragon/.virtualenvs/salt-dev/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 65, in instances fetch = cursor.fetchall() File "/Users/techdragon/.virtualenvs/salt-dev/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 788, in fetchall self.cursor, self.context) File "/Users/techdragon/.virtualenvs/salt-dev/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1076, in _handle_dbapi_exception...

being able to rename the database file is important when your code has multiple processes. For instance when debugging salt (which communicates via zeromq between its daemons) I have 2...

Would be nice to have a way to configure the length of trace to keep.