Commit Graph

286 Commits

Author SHA1 Message Date
Ram Rachum
57283caf47 Bump version 2019-05-11 15:10:00 +03:00
Nikita Melentev
5698d6c3e2 Support generators 2019-05-11 15:09:37 +03:00
Ram Rachum
669863a65f Formatting 2019-05-11 14:29:57 +03:00
Ram Rachum
c7b5a2e515 Move docstring to class 2019-05-11 14:29:23 +03:00
Ram Rachum
9a2889d02f Bump version 2019-05-11 14:26:00 +03:00
Alexander Bersenev
bf52d30d91 Make vars_order line a bit shorter
Co-Authored-By: Alex Hall <alex.mojaki@gmail.com>
2019-05-11 14:25:47 +03:00
Alexander Bersenev
c976a185bb Join two lines in get_local_reprs 2019-05-11 14:25:47 +03:00
Alexander Bersenev
cb280323e5 Don't always place new variables before the modified ones 2019-05-11 14:25:47 +03:00
Alexander Bersenev
49f7dd504b Move one string of code down in get_local_reprs 2019-05-11 14:25:47 +03:00
Alexander Bersenev
472985a32c Simplify parameters sorting 2019-05-11 14:25:47 +03:00
Alexander Bersenev
3121842110 Make frame_to_local_reprs a dict
Co-Authored-By: Alex Hall <alex.mojaki@gmail.com>
2019-05-11 14:25:47 +03:00
Alexander Bersenev
ca90f55d5f Make order test more reliable on pypy 2019-05-11 14:25:47 +03:00
Alexander Bersenev
1cd2dffa13 Rewrite get_local_reprs to use sort explicitely 2019-05-11 14:25:47 +03:00
Alexander Bersenev
2a6b2b4299 Variable ordering test 2019-05-11 14:25:47 +03:00
Alexander Bersenev
17d8a41b3b Restore cell vars support in the ordered printing. 2019-05-11 14:25:47 +03:00
Alexander Bersenev
e4cd9974b2 Simplify the new and modified values reporting. 2019-05-11 14:25:47 +03:00
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