{"repo":"gruns/icecream","free":true,"listed":false,"github":"https://github.com/gruns/icecream","clone":"git clone https://github.com/gruns/icecream.git","description":"🍦 Never use print() to debug again.","language":"Python","stars":10105,"topics":["python","python3","library","inspects","debug","debugging","debugging-tool","print"],"license":"MIT","category":"dev-tools","readme_excerpt":"IceCream — Never use print() to debug again Do you ever use print() or log() to debug your code? Of course you do. IceCream, or ic for short, makes print debugging a little sweeter. ic() is like print() , but better: 1. It prints both variables and expressions along with their values. 2. It's 60% faster to type. 3. Data structures are formatted and pretty printed. 4. Output is syntax highlighted. 5. It optionally includes program context: filename, line number, and parent function. IceCream is well tested, permissively licensed, and supports Python 3 and PyPy3. IceCream is maintained by Jakeroid (Ivan Karabadzhak), with support from the confidential computing folks at 🌖 Lunal. Inspect Variables Have you ever printed variables or expressions to debug your program? If you've ever typed something like or the more thorough then ic() will put a smile on your face. With arguments, ic() inspects itself and prints both its own arguments and the values of those arguments. Prints Similarly, Prints Just give ic() a variable or expression and you're done. Easy. Inspect Execution Have you ever used print() to determine which parts of your program are executed, and in which order they're executed? For example, if you've ever added print statements to debug code like then ic() helps here, too. Without arguments, ic() inspects itself and prints the calling filename, line number, and parent function. Prints Just call ic() and you're done. Simple. Return Value ic() returns its argument(s), so","default_branch":null,"files":null,"tree":[],"storefront":"/r/gruns","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gruns/icecream/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}