snoop icon indicating copy to clipboard operation
snoop copied to clipboard

How to debug coroutines?

Open RZarifov opened this issue 5 years ago • 1 comments

The title is self explanatory. How to debug coroutines, tasks, futures using snoop or whatever else? Asking this because snoop, as well as birdseye deliberately chose to not support coroutines.

RZarifov avatar Oct 23 '19 06:10 RZarifov

The reasoning here is similar to https://github.com/alexmojaki/birdseye/issues/78.

It's also based on PySnooper's choice not to support coroutines to avoid keeping the trace function around for too long, as discussed in https://github.com/cool-RR/PySnooper/pull/65

Try using a normal debugger like pdb or your IDE. I have no idea what the results will be like.

alexmojaki avatar Oct 23 '19 08:10 alexmojaki