icecream
🍦 Never use print() to debug again. (by gruns)
snoop
A powerful set of Python debugging tools, based on PySnooper (by alexmojaki)
Our great sponsors
icecream | snoop | |
---|---|---|
41 | 7 | |
8,427 | 1,193 | |
- | - | |
5.6 | 0.0 | |
26 days ago | 4 months ago | |
Python | Python | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
icecream
Posts with mentions or reviews of icecream.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-11-28.
-
Show HN: Dbg.h: C macro for quick and dirty print debugging
Hey, very useful. Thanks! Similar to ic() for python, but with the nice ability to be used inline.
https://github.com/gruns/icecream
- When you are looking at someone else's code base and you want to make a copy of it to put in a million print statements to understand it, what is good practice in terms of version control and naming the copy?
-
Pythoneers here, what are some of the best python tricks you guys use when progrmming with python
Icecream is great for this. Just calling ic(foo) gives you the same thing on stderr.
- What's you fav ice cream??
-
What Python debugger do you use?
I get around this by using loguru (a wrapper around python's logger), so I get information like the calling function and line number with my debugging statements. I don't use it these days (and actually built something extremely similar around the same time), but icecream is another alternative that facilitates debugging-by-print
- Top 3 hardest things with debugging as a beginner?
-
Does anyone use python debugger?
Most of the time I simply use icecream (a much better version of print()), and sometimes, I use pudb (a visual debugger) for tougher/trickier bugs.
-
Let's do a war
We also have ice cream
-
What is your favorite ,most underrated 3rd party python module that made your programming 10 times more easier and less code ? so we can also try that out :-) .as a beginner , mine is pyinputplus
I found icecream in a post on this subreddit and still use it as an alternative to print for debugging.
-
A script for print debugging python code
In the future using something like icecream might be interesting as well.
snoop
Posts with mentions or reviews of snoop.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-07.
- Show HN: A 100% free and interactive Python course for coding beginners
-
Useful Python Modules for us
pdbpp: Improved pdb boltons: assorted python addtions twisted: event driven networking framework sorcery: Dark magic in python, things know where+how they are being called, helps reducing boilerplate sh: Better alternative for subprocess module, much more pythonic taskipy: npm run scipt_name like functionality snoop: pdb lite, record+replay function steps birdseye: graphical debugger remote-pdb: easy pdb from inside containers typer: wrapper around click for simpler code for CLIs arrow: Always TZ aware datetimes, plus more features more-itertools: more functions for iterators pydantic: data validation + dataclasses loguru: better logging notifiers: sending notifications from python
- Looking for app that visualizes python program
-
Top python libraries/ frameworks that you suggest every one
snoop or pysnooper
-
Stop Using print() for Debugging When You Can Snoop Instead
We have all used strategic print() statements in our code to make sure our code is running a certain line or to see the value of a variable. This gets a little sloppy and doesn't provide much context into why some code is not behaving as expected. Enter snoop, the super dead simple way to see exactly what the code is doing, the line of code that is executing, and when and what the values of local variables are. This can help us understand the flow of our code and identify issues much faster!
-
Icecream: Never use print() to debug again in Python
Try https://github.com/alexmojaki/snoop for both plus more.
What are some alternatives?
When comparing icecream and snoop you can also consider the following projects:
pdb++
PySnooper - Never use print for debugging again
Loguru - Python logging made (stupidly) simple
python-devtools - Dev tools for python
py-spy - Sampling profiler for Python programs
pdbpp - pdb++, a drop-in replacement for pdb (the Python debugger)
Laboratory - Achieving confident refactoring through experimentation with Python 2.7 & 3.3+
py_better_exchook - nice Python exception hook replacement
remote-pdb - Remote vanilla PDB (over TCP sockets).
panopticon - Python tracing module to visualize code execution.
q - Quick and dirty debugging output for tired programmers. ⛺