Commit Graph

170 Commits

Author SHA1 Message Date
Alexander Bersenev
92ff55d2f1 Make predictable order of items if we don't know the proper order.
Also fix tests
2019-05-11 14:25:47 +03:00
Alexander Bersenev
f4117c1565 Preserve the local variables order in the output.
The variables are outputed in the declare order, instead of alphabetical.

This causes function arguments to be printed in the declare order.
All watched variables are outputted after declared ones.
2019-05-11 14:25:47 +03:00
Alex Hall
90a1946529 Newest python versions have different repr for exceptions, avoid altogether 2019-05-11 13:34:55 +03:00
Alex Hall
dea100b929 Add test for exception 2019-05-11 13:34:55 +03:00
Alex Hall
f6001ce3b1 Fix opcode lookup in Python 2 2019-05-11 13:34:55 +03:00
Alex Hall
d24f9e3846 Log exceptions nicely 2019-05-11 13:34:55 +03:00
Ram Rachum
4b77bb6000 Update AUTHORS some more 2019-05-11 10:38:40 +03:00
Ram Rachum
fa7fa1c1c5 Update AUTHORS 2019-05-11 10:33:19 +03:00
Alex Hall
f4bae3f1a9 Unify imports 2019-05-11 09:38:09 +03:00
Alex Hall
3b8de8826e Add indentation tests with new assert_sample_output 2019-05-11 09:38:09 +03:00
Alex Hall
6553cd50f0 Store depth globally to indent correctly in all cases 2019-05-11 09:38:09 +03:00
Alex Hall
8f91784821 Indent based on how many calls are currently being traced 2019-05-11 09:38:09 +03:00
Alex Hall
1bcaea2059 Remove decorator module, use functools.wraps 2019-05-10 21:25:23 +03:00
Ram Rachum
a11b42c6fd Bump version 2019-05-10 20:49:53 +03:00
Alex Hall
af76e55aef Truncate long variables in the middle 2019-05-10 20:48:09 +03:00
Alex Hall
a5eb93ac62 Delete frames when exiting to free up memory 2019-05-10 20:38:53 +03:00
Hervé Beraud
fae0ce0c76 Add support for thread identifiers
Display thread infos (identifier and name) on output to help
user to track execution on apps who use threading.
2019-05-10 18:57:50 +03:00
Alex Hall
2801ce0c0e Keep proper track of previous tracing functions 2019-05-10 18:54:20 +03:00
Ram Rachum
7d807e834f Remove space 2019-05-10 13:28:17 +03:00
Diego Volpatto
8d58caa9bb Update MANIFEST including LICENSE 2019-05-10 08:17:28 +03:00
Diego Volpatto
980db17148 Update README.md 2019-05-10 07:47:28 +03:00
Ram Rachum
002f3354ba Bump version 2019-05-09 09:20:12 +03:00
Ram Rachum
0482853d96 Remove reprlib because it's not reliable for simple cases 2019-05-09 09:15:59 +03:00
Hervé Beraud
0057d91c46 Add Hervé Beraud to authors 2019-05-09 08:11:22 +03:00
Ram Rachum
ceee13a147 Make generate_authors.py write binary to support Unicode 2019-05-09 08:09:49 +03:00
Ram Rachum
7a5beb1c10 Bump version 2019-05-08 14:04:08 +03:00
Alex Hall
313b22f30c Cache source by both module name and filename. Fixes #101 2019-05-08 14:03:54 +03:00
Ram Rachum
21f64e753b Bump version 2019-05-07 09:24:13 +03:00
Alex Hall
ae17e3b724 More reliable _is_internal_frame 2019-05-05 18:22:01 +03:00
Alex Hall
baf5510814 Document with block usage 2019-05-05 18:22:01 +03:00
Alex Hall
69673044e3 Inline _should_trace_frame 2019-05-05 18:22:01 +03:00
Alex Hall
b5b08f334e Optimisation: return None when not tracing frame to avoid line events 2019-05-05 18:22:01 +03:00
Alex Hall
7ac2d59624 Improve checks for tracing, add tests for with blocks 2019-05-05 18:22:01 +03:00
Alex Hall
fd1ba5b57a Add back get_write_and_truncate_functions 2019-05-05 18:22:01 +03:00
Alex Hall
b41b37fbe3 Allow using snoop as context manager 2019-05-05 18:22:01 +03:00
Alex Hall
6d78ee4c84 Make Tracer a class based decorator 2019-05-05 18:22:01 +03:00
Ram Rachum
e856f7a181 Update authors 2019-05-04 09:37:42 +03:00
Ram Rachum
3723963cc9 Bump version 2019-05-04 09:36:43 +03:00
Andreas van Cranenburgh
7e845b8f49 add usage to package docstring; fixes #83 2019-05-04 09:35:58 +03:00
Alex Hall
750ef4c639 Rename to needs_parentheses 2019-05-03 22:54:41 +03:00
Alex Hall
7a1b457013 Only add parentheses to exploded expressions if needed 2019-05-03 22:54:41 +03:00
Ram Rachum
53b3ea13b8 Improve docs 2019-05-03 21:51:28 +03:00
Ram Rachum
b0eb9a19fd Bump version 2019-05-03 21:45:54 +03:00
Ram Rachum
9345a5c324 I like PathLike 2019-05-03 21:45:54 +03:00
Alex Hall
5a82a65bde Test for open attribute on output, to support Paths 2019-05-03 21:45:54 +03:00
Alex Hall
2732922e1d Test output directly to Path object (currently fails) 2019-05-03 21:45:54 +03:00
Ram Rachum
89d299f20f Improve docs, fix #84 2019-05-03 21:44:06 +03:00
Ram Rachum
a9d884a579 Fix docs some more 2019-05-03 19:00:14 +03:00
Ram Rachum
600dedcc1a Fix docs 2019-05-03 18:58:53 +03:00
Ram Rachum
f8cd6692ba Disable unused Travis jobs 2019-05-03 18:50:15 +03:00