- changed milestone to public-release
Formatting of backend debugging output has changed
Prior to invoking the frontend, the backend prints some debugging information to help the user understand what went wrong if they see unexpected behaviour.
The formatting of that debugging information seems to have changed for some reason. It now looks like this:
('Chose function', u'mozilla::dom::SVGRectElement::GetGeometryBounds', 'in file', '/home/botond/dev/mozilla/central/dom/svg/SVGRectElement.cpp')
('Line range is [', 119, ',', 168, ']')
('Executed lines:', [120, 122, 123, 122, 125, 133, 143, 166, 167, 168])
('Adjusted executed lines:', [1, 3, 4, 3, 6, 14, 24, 47, 48, 49])
('Wrote data to file', '/tmp/tmppctGgA')
('Executing command:', 'cd /home/botond/dev/personal/cfviz/backend/.. && target/debug/cfviz-dmb --true-color /tmp/tmppctGgA')
The parentheses, single quotes, and top-level commas weren't there previously.
My guess is another Python 2 vs. Python 3 issue.
Comments (4)
-
reporter -
reporter My guess is another Python 2 vs. Python 3 issue.
Indeed. That is what the output of Python 3's
print()
function looks like in Python 2. -
reporter Python 2 is interpreting
print("a", "b")
as "print the tuple("a", "b")
". Looks like it can be fixed withfrom __future__ import print_function
, which imports Python 3'sprint()
function into Python 2. -
reporter - changed status to resolved
Make debugging output look consistent between python 2 and python 3 (fixes
#14)→ <<cset eb3e0e1ad8bf>>
- Log in to comment