18 Feb
2012
18 Feb
'12
12:46 p.m.
2012/2/18 Stefan Behnel <stefan_ml@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