This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
other:python:jyp_steps [2016/02/09 15:32] jypeter Added the views side effect section |
other:python:jyp_steps [2016/02/18 11:02] jypeter Started the debug section |
||
---|---|---|---|
Line 189: | Line 189: | ||
* [[http://blog.codinghorror.com/a-pragmatic-quick-reference/|A Pragmatic Quick Reference]] | * [[http://blog.codinghorror.com/a-pragmatic-quick-reference/|A Pragmatic Quick Reference]] | ||
+ | |||
+ | ===== Debugging your code ===== | ||
+ | |||
+ | There is only so much you can do with staring at your code in your favorite text editor, and adding ''print'' lines in your code (or [[https://docs.python.org/2/howto/logging.html#logging-basic-tutorial|using logging]] instead of ''print''). The next step is to use the python debugger! | ||
+ | |||
+ | ==== Debugging in text mode ==== | ||
+ | |||
+ | ==== Using pydebug ==== | ||
+ | |||
===== Improving the performance of your code ===== | ===== Improving the performance of your code ===== |