Changes between Version 113 and Version 114 of DeveloperGuidelines/Tips


Ignore:
Timestamp:
06/28/11 21:06:51 (10 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Tips

    v113 v114  
    99 * Log to a File: http://groups.google.com/group/web2py/browse_thread/thread/e20d0bd2e542aa14
    1010 * Debug Tools: http://docs.python.org/library/debug.html
     11 * 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:
     12{{{
     13import inspect
     14curframe = inspect.currentframe()
     15calframe = inspect.getouterframes(curframe, 2)
     16print 'caller name:', calframe[1][3]
     17}}}
    1118 * [http://aymanh.com/python-debugging-techniques Python Debugging Techniques]
    1219  * Insert these statements into your code