3 ms·
Interestingly gdb (and in turn rr) has some limited support for debugging python. At least you can get a python backtrace, but I didn't have success in setting
by leni536 2y ago
Interestingly gdb (and in turn rr) has some limited support for debugging python. At least you can get a python backtrace, but I didn't have success in setting pyhton breakpoints.
- laserbeam 2y agoYeah, 'cause you're technically debugging the python interpreter. I've had some success with tracing tools designed for C/C++ for a python project. Was not easy to set up and will obviously include frames from the interpreter. Tho, it feels wrong to expect a tool designed for native binaries to work well with python in this context. And that's ok. It feels lucky when it works as much as it does.
- greg_law 2y agohttps://undo.io/resources/how-i-debug-python-code-with-a-time-travel-debugger https://undo.io/resources/how-i-debug-python-code-with-a-tim... "How I debug Python code with a Time Travel Debugger" Works surprisingly well.