Changes between Version 135 and Version 136 of DeveloperGuidelines/Tips
- Timestamp:
- 08/12/15 10:53:50 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Tips
v135 v136 9 9 * use [http://ipython.scipy.org/moin/ IPython] for interactive exploration (on Windows, install [http://ipython.scipy.org/moin/PyReadline/Intro PyReadline]) 10 10 * use [http://groups.google.com/group/web2py/browse_thread/thread/cc13960a5079b2d5# FirePy] to see logging output to Console (to view with Firebug) 11 * Log to a File: http://groups.google.com/group/web2py/browse_thread/thread/e20d0bd2e542aa14 11 * Log to a File: 12 {{{ 13 cp /home/web2py/examples/logging.example.conf /home/web2py/logging.conf 14 vi /home/web2py/logging.conf 15 # Add PyDAL 16 keys=root,rocket,markdown,web2py,rewrite,cron,app,welcome,pydal 17 [logger_pydal] 18 level=DEBUG 19 handlers=rotatingFileHandler 20 qualname=pyDAL 21 propagate=0 22 # Don't break uwsgi: Remove ConsoleHandler (from all) & log to stderr 23 handlers=rotatingFileHandler 24 args=(sys.stderr,) 25 }}} 26 * http://groups.google.com/group/web2py/browse_thread/thread/e20d0bd2e542aa14 12 27 * Debug Tools: http://docs.python.org/library/debug.html 13 28 * Use [http://stackoverflow.com/questions/2654113/python-how-to-get-the-callers-method-name-in-the-called-method Inspect] to check which function called the one you're troubleshooting: