Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: =?UTF-8?Q?Thomas_G=c3=bcttler?= Newsgroups: de.comp.lang.python Subject: [Python-de] Tracing mit hunter macht Laune Date: Thu, 24 Jan 2019 13:31:29 +0100 Lines: 26 Message-ID: References: <1422843c-8e11-a526-966a-eff74a3cb136@thomas-guettler.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de PNuNRBb3UOSuAz/RB2j/VAY85CQ09igc8batqXPTZppQ== Return-Path: X-Original-To: python-de@python.org Delivered-To: python-de@mail.python.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Content-Language: de-DE X-BeenThere: python-de@python.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Die Deutsche Python Mailingliste List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1422843c-8e11-a526-966a-eff74a3cb136@thomas-guettler.de> Xref: csiph.com de.comp.lang.python:5411 Hallo, hier kommt keine Frage sondern Begeisterung. Ich habe mal hunter[1] ausprobiert. Die Aktivierung über die Umgebungsvariable ist etwas komisch, aber das Ergebnis ist wirklich schön: PYTHONHUNTER="module_startswith='mymod'" myscript.py myargs Ich persönlich bin kein großer Freund vom Debugger und dem zeilenweisen Durchhopseln durch den Code. Per Tracing sehe ich was er macht. Das zusammen mit print+assert reicht meist voll aus. Wie seht ihr das? Gruß, Thomas [1] https://pypi.org/project/hunter/ -- Thomas Guettler http://www.thomas-guettler.de/ I am looking for feedback: https://github.com/guettli/programming-guidelines