-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi, I wrote this simple utility that helped me a lot in debugging a bug. a.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkltAUoACgkQ9B/tjjP8QKQ9hgCgnvSWT9Z+geLprFQg6Ug5vF8J
W4sAnijfohHCajraPG0FYHFG/bne6rTS
=fcPz
-----END PGP SIGNATURE-----
--- ./util/misc.py~1.8.3	2008-03-23 11:07:39.000000000 +0100
+++ ./util/misc.py	2009-01-13 20:30:38.000000000 +0100
@@ -34,7 +34,18 @@
 import string, re
 import copy
 import htmlentitydefs
+import inspect
 
+def print_upper_execution_stack(depth=4):
+    """ print 4 most recent frames in the execution stack,
+    but avoiding the freevo benchmarking tool.
+    Warning: this is intended only for temporary debugging."""
+    for i in inspect.stack()[1:] :
+        if i[1][-13:] != '/benchmark.py' or i[3] != 'origfunc' :
+            print i[1:]
+            depth -= 1
+            if depth <= 0 :
+                return
 
 # Configuration file. Determines where to look for AVI/MP3 files, etc
 import config
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to