I have a script say script1 that imported many functions from other scripts. say func1(), func2() and func3() for example. I would like to pause the script when an entire function is completed.
Which means usually if I pause script1 normally when func1() is executing, the script will pause when some line of func1() is completed. Now I want to guarantee the pause happens after func1() has finished execution.
Is there any possible way to achieve this? Particularly, is there any way I can detect which line of script1 is executing now and add a line of code like "Pause On" after it?