[pypy-dev] Bringing Cython and PyPy closer together
Amaury Forgeot d'Arc
amauryfa at gmail.com
Sat Feb 18 21:46:32 CET 2012
2012/2/18 Stefan Behnel <stefan_ml at behnel.de>
> And now the question is: how do I debug into PyPy?
Part of the answer:
I never debug pypy. Even with debug symbols, the (generated)
code is so complex that most of the time you cannot get anything
interesting beyond the function names.
But pypy is written in RPython, which can run on top of CPython.
Even the cpyext layer can be interpreted; when the extension
module calls PyDict_Next(), it actually steps into cpyext/dictobject.py!
And it's really fun to add print statements, conditional breakpoints,
etc. and experiment with the code without retranslating everything.
--
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20120218/1eb272bf/attachment.html>
More information about the pypy-dev
mailing list