How do I see where function was called?

Hello! So I have a huge code where is called function in a module script, and I need to know where is goes error, in which string.

You could use the debugger.

You can set a breakpoint in the line of code where you want the debugger to stop the program, so that you can inspect variables and/or step through the code one line at the time to see what happens.