Changes between Version 113 and Version 114 of DeveloperGuidelines/Tips
- Timestamp:
- 06/28/11 21:06:51 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Tips
v113 v114 9 9 * Log to a File: http://groups.google.com/group/web2py/browse_thread/thread/e20d0bd2e542aa14 10 10 * 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 {{{ 13 import inspect 14 curframe = inspect.currentframe() 15 calframe = inspect.getouterframes(curframe, 2) 16 print 'caller name:', calframe[1][3] 17 }}} 11 18 * [http://aymanh.com/python-debugging-techniques Python Debugging Techniques] 12 19 * Insert these statements into your code