How to debug a script after Teleport?

Since it is not possible to do Teleport from Studio, I would like to know how I can debug a script that is executed after the teleport?