icecream
🍦 Never use print() to debug again. (by gruns)
line_profiler
By rkern
Our great sponsors
icecream | line_profiler | |
---|---|---|
41 | 1 | |
8,396 | 3,493 | |
- | - | |
5.6 | 0.0 | |
19 days ago | about 5 years ago | |
Python | Python | |
MIT License | BSD 3-clause "New" or "Revised" 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.
-
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 Python debugger do you use?
For the occasional print-style debugging, I enjoy the icecream package: https://github.com/gruns/icecream
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
-
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.
-
library to log methods and function calls.
How can we integrate with current logging libraries such as logging, logges, loguru? And how would you compare your library with ic
-
Im listening...
It's pip install icecream An easy mistake to make.
You jest, but there actually is a library called icecream and it's way better than print or pprint
line_profiler
Posts with mentions or reviews of line_profiler.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-11-11.
-
My current python backtesting script - looking for feedback and speed improvements
If you apply something like https://github.com/rkern/line_profiler to your code it will give you a line-by-line breakdown of where the time is being spent in the code.
What are some alternatives?
When comparing icecream and line_profiler you can also consider the following projects:
pdb++
Loguru - Python logging made (stupidly) simple
memory_profiler - Monitor Memory usage of Python code
py-spy - Sampling profiler for Python programs
profiling
pyflame
Laboratory - Achieving confident refactoring through experimentation with Python 2.7 & 3.3+
PySnooper - Never use print for debugging again
remote-pdb - Remote vanilla PDB (over TCP sockets).