Changes between Version 115 and Version 116 of DeveloperGuidelines/Tips
- Timestamp:
- 11/16/11 10:39:56 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Tips
v115 v116 15 15 calframe = inspect.getouterframes(curframe, 2) 16 16 print 'caller name:', calframe[1][3] 17 }}} 18 * Debug SQL Queries: 19 {{{ 20 vi gluon/dal.py 21 class BaseAdapter() 22 def select(): 23 def response(sql): 24 if "searchphrase" in sql: 25 print >> sys.stderr, "Query: %s" % query 26 print >> sys.stderr, "SQL: %s" % sql 17 27 }}} 18 28 * [http://aymanh.com/python-debugging-techniques Python Debugging Techniques]