Changes between Version 135 and Version 136 of DeveloperGuidelines/Tips


Ignore:
Timestamp:
08/12/15 10:53:50 (6 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Tips

    v135 v136  
    99* use [http://ipython.scipy.org/moin/ IPython] for interactive exploration (on Windows, install [http://ipython.scipy.org/moin/PyReadline/Intro PyReadline])
    1010* 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{{{
     13cp /home/web2py/examples/logging.example.conf /home/web2py/logging.conf
     14vi /home/web2py/logging.conf
     15# Add PyDAL
     16keys=root,rocket,markdown,web2py,rewrite,cron,app,welcome,pydal
     17[logger_pydal]
     18level=DEBUG
     19handlers=rotatingFileHandler
     20qualname=pyDAL
     21propagate=0
     22# Don't break uwsgi: Remove ConsoleHandler (from all) & log to stderr
     23handlers=rotatingFileHandler
     24args=(sys.stderr,)
     25}}}
     26 * http://groups.google.com/group/web2py/browse_thread/thread/e20d0bd2e542aa14
    1227* Debug Tools: http://docs.python.org/library/debug.html
    1328* 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: