Date: Sun, 08 Dec 2019 20:00:00 -0500
<div class="wp-block-jetpack-markdown"><h3>Summary</h3> <p>Debugging is a painful but necessary practice in software development. The tools that are available in Python range from the built-in debugger, to tools integrated with your coding environment, to the trusty print function. In this episode Ram Rachum describes his work on PySnooper and how it can be used to speed up your problem solving in complex or legacy applications.</p> <h3>Announcements</h3> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python and the people who make it great.</li> <li>When you’re ready to launch your next app or want to try a project you hear about on the show, you’ll need somewhere to deploy it, so take a look at our friends over at Linode. With 200 Gbit/s private networking, scalable shared block storage, node balancers, and a 40 Gbit/s public network, all controlled by a brand new API you’ve got everything you need to scale up. And for your tasks that need fast computation, such as training machine learning models, or running your build servers, they just launched dedicated CPU instances. Go to <a href="https://www.pythonpodcast.com/linode?utm_source=rss&utm_medium=rss">pythonpodcast.com/linode</a> to get a $20 credit and launch a new server in under a minute. And don’t forget to thank them for their continued support of this show!</li> <li>You listen to this show to learn and stay up to date with the ways that Python is being used, including the latest in machine learning and data analysis. For even more opportunities to meet, listen, and learn from your peers you don’t want to miss out on this year’s conference season. We have partnered with organizations such as O’Reilly Media and the Python Software Foundation. Upcoming events include the Software Architecture Conference in NYC and PyCon US in Pittsburgh. Go to <a href="https://www.pythonpodcast.com/conferences?utm_source=rss&utm_medium=rss">pythonpodcast.com/conferences</a> to learn more about these and other events, and take advantage of our partner discounts to save money when you register today.</li> <li>Your host as usual is Tobias Macey and today I’m interviewing Ram Rachum about PySnooper, an alternative approach to debugging your python projects</li> </ul> <h3>Interview</h3> <ul> <li>Introductions</li> <li>How did you get introduced to Python?</li> <li>How do developers normally debug their code, and what need does PySnooper address that isn’t addressed by the established methods?</li> <li>What is the workflow for using PySnooper for investigating or debugging a project? (This will probably be answered in the answer to the question above)</li> <li>What are some of the pieces of information that it surfaces and how do they aid the developer in directing their investigation?</li> <li>What were some of the projects that you were testing it with and how did they influence the direction that you took PySnooper?</li> <li>Can you describe how PySnooper is implemented and some of the ways that it has evolved since you first began working on it?</li> <li>What are some of the initial goals that you had for the project which you have since abandoned as either not useful or too challenging to implement?</li> <li>What are some of the edge cases or technical challenges that you have encountered while working on PySnooper, either in Python itself or in the tool?</li> <li>There is another project called Snoop which builds on top of your work on PySnooper to add some extra functionality and developer ergonomics. What, if anything, was your reaction to it and how has it influenced your work on PySnooper?</li> <li>One of the notable aspects of your work on PySnooper is the amount of attention that it garnered shortly after you published it. How has that visibility affected the long-term popularity and use of PySnooper?</li> <li>What have been some of the most interesting, unexpected, or difficult aspects of creating, maintaining, and promoting PySnooper?</li> <li>What do you have planned for the future of the project?</li> </ul> <h3>Keep In Touch</h3> <ul> <li><a href="https://github.com/cool-RR?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">cool-RR</a> on GitHub</li> <li><a href="https://ram.rachum.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Personal Website</a></li> <li><a href="https://chipmunkdev.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Consulting Website</a></li> </ul> <h3>Picks</h3> <ul> <li>Tobias <ul> <li><a href="https://us.pycon.org?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PyCon US</a> <ul> <li><a href="https://us.pycon.org/2020/speaking/talks/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Call for proposals</a></li> <li><a href="https://us.pycon.org/2020/registration/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Registration</a></li> </ul> </li> </ul> </li> <li>Ram</li> <li><a href="https://www.youtube.com/watch?v=l7TONauJGfc&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Nonviolent communication</a></li> </ul> <h3>Links</h3> <ul> <li> <p><a href="https://github.com/cool-RR/PySnooper/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PySnooper</a></p> </li> <li> <p><a href="http://pythonworkshops.co/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Ram’s Python workshops</a></p> </li> <li> <p><a href="https://www.meetup.com/PyWeb-IL/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The PyWeb-IL meetup</a></p> </li> <li> <p><a href="https://www.bluevine.com/careers/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">BlueVine’s career page</a> Submit your CV to Ram’s email <a href="mailto:ram@rachum.com">mailto:ram@rachum.com</a></p> </li> <li> <p><a href="https://en.wikipedia.org/wiki/Tel_Aviv?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Tel Aviv Israel</a></p> </li> <li> <p><a href="http://www.paulgraham.com/articles.html?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Paul Graham</a></p> </li> <li> <p><a href="https://www.ycombinator.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Y Combinator</a> startup accelerator</p> </li> <li> <p><a href="https://wingware.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Wing IDE</a></p> </li> <li> <p><a href="https://www.jetbrains.com/pycharm/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PyCharm</a></p> </li> <li> <p><a href="https://docs.python.org/dev/library/sys.html#sys.settrace?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">sys.settrace</a></p> </li> <li> <p><a href="https://docs.python.org/dev/library/sys.html#sys.settrace?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Python f_trace</a></p> </li> <li> <p><a href="https://coverage.readthedocs.io/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">coverage.py</a></p> <ul> <li><a href="https://www.podcastinit.com/coverage-py-with-ned-batchelder-episode-121/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Podcast.<strong>init</strong> Interview</a></li> </ul> </li> <li> <p><a href="https://www.python.org/dev/peps/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PEP == Python Enhancement Proposal</a></p> <ul> <li><a href="https://www.pythonpodcast.com/episode-37-the-pep-talk/?utm_source=rss&utm_medium=rss">Podcast Episode</a></li> </ul> </li> <li> <p><a href="https://github.com/alexmojaki/snoop?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">snoop</a> project</p> </li> <li> <p><a href="https://github.com/alexmojaki?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Alex Hall</a></p> </li> <li> <p><a href="https://docs.python.org/3/library/pdb.html?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">pdb</a></p> </li> <li> <p><a href="https://github.com/inducer/pudb?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">pudb</a></p> </li> <li> <p><a href="https://github.com/pdbpp/pdbpp?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">pdb++</a></p> </li> <li> <p>The intro and outro music is from Requiem for a Fish <a href="http://freemusicarchive.org/music/The_Freak_Fandango_Orchestra/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Freak Fandango Orchestra</a> / <a href="http://creativecommons.org/licenses/by-sa/3.0/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">CC BY-SA</a></p> </li> </ul> </div> <img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&rec=1&url=https%3A%2F%2Fwww.pythonpodcast.com%2Fpysnooper-python-debugging-episode-241%2F&action_name=Debugging+Python+Projects+With+PySnooper+-+Episode+241&urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&utm_source=rss&utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" />