frosch icon indicating copy to clipboard operation
frosch copied to clipboard

Print Debugging

Open HallerPatrick opened this issue 5 years ago • 3 comments

Almost everything implement but the interface


from frosch import fprint as fp

fp(some_var)

HallerPatrick avatar Nov 27 '20 16:11 HallerPatrick

What do you want to do? Something like https://github.com/gruns/icecream or https://github.com/alexmojaki/snoop#pp---awesome-print-debugging ?

alexmojaki avatar Feb 06 '21 21:02 alexmojaki

Im not sure anymore... But I think, that froschwas becoming more a multi functional debugging tool. So the next step was to introduce features like icecream. But after coming back to it, it feels like reinventing the wheel, when something like icecream is out there.

One think I could imagine is to make a thin wrapper around icecream so it is directly usable in frosch. Which would remove the overhead of installing icecream from the user.

Whats your opinion @alexmojaki ?

HallerPatrick avatar Jul 30 '21 15:07 HallerPatrick

The hard work is done by executing and asttokens which frosch already implicitly requires. You can easily use them to write your own version of icecream that formats the output in a way that fits your style and frosch.

alexmojaki avatar Jul 30 '21 15:07 alexmojaki