Or gdb backtrace
How to download/make gdb backtrace? (for Windows user)
Is there a file named gdb.exe in your C:/MinGW/bin directory? If there isn't, you'll have to download gdb and put it in that directory.
How to backtracing TPT? (use gdb backtrace)
First, learn the basic commands. Once you've done that, set a breakpoint on GameView::OnTick, run the program, and when it hits the breakpoint, you can run the backtrace to see which function calls lead up to the current function.
Also, you must compile TPT with debugging symbols. If you're using scons, that'd be: scons.py --debugging