Hi, it seems like I can't trace scripts run by PyRun_SimpleString(): a=0 def test(frame, event, arg): global a a+=1 import sys sys.settrace(test) print a print a print a -> 0 0 0 Does anybody know how I can get something similar with the C-Funcs for Tracing??