Menu

#15 debug tracing

v1.0 (example)
open
nobody
None
5
2016-02-17
2016-02-17
Dan Strohl
No

is there a way of saving a trace list/dict of debug info?

so, something like the results.dump() command, but showing all steps.

something like:

trace = ParseElement.trace('test_string')

str(trace)
parser_name (And) [fail]:
parser_name (Word) [pass]
parser_name (Literal) [pass]
parser_name (Or) [fail]
parser_name (Word) [fail]

trace # not showing all levels
[('parser_name (And)',
False,
(
('parser_name (Word)', True, ()),
('Parser_name (Literal)', True, ()),
)
)]

does that make sense? thoughts?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.