User Tools

Site Tools


other:python:misc_by_jyp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
other:python:misc_by_jyp [2025/08/29 11:17] – [Extra tutorials] Added the "Stats stuff" category jypeterother:python:misc_by_jyp [2025/10/31 11:28] (current) – [Using a decorator to log function calls] jypeter
Line 825: Line 825:
 </code> </code>
  
 +===== Debugging... =====
 +
 +Some resources that you can use in the unlikely case that <del>you</del> some AI has introduced <del>features</del> bugs in your code
 +
 +==== Built-in tools ====
 +
 +Read the documentation of:
 +  * [[https://docs.python.org/3/library/pdb.html|pdb, The Python Debugger]]
 +  * and the other built-in [[https://docs.python.org/3/library/debug.html|Debugging and Profiling tools]]
 +
 +==== Using a decorator to log function calls ====
 +
 +Check the example in [[https://blog.devgenius.io/my-lazy-secret-to-cleaner-code-python-decorators-d43d673a1ba2|My Lazy Secret to Cleaner Code: Python Decorators]]
 +
 +Note: more about [[#using_log_files_aka_logging|using log files]]
  
 /* /*
other/python/misc_by_jyp.1756459029.txt.gz · Last modified: by jypeter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki