by orf · 10y ago · 0 comments
How can they put a breakpoint/inspect objects at arbitrary locations without this slowdown? Maybe they have a modified cPython interpreter?
Edit: lots of C code is the answer[1]
1. https://github.com/GoogleCloudPlatform/cloud-debug-python/tr...
This source file implements all of it: https://github.com/GoogleCloudPlatform/cloud-debug-python/bl...
The Cloud Debugger is different from your tradition debugger as it optimizes for application speed. For example, it would capture values, let the thread continue and run, and only then serialize is back to the Cloud Debugger server.