How can i get full traceback in the following case, including the calls of func2 and func functions?
func2
func
import traceback def func():
Stack trace is collected when exception bubbles up. So you should print traceback on top of desired stack:
import traceback def func(): raise Exception('Dummy') def func2(): func() try: func2() except: traceback.print_exc()