A basic question: are there any ways to debug script?

Usually, how do you debug the script file? print log? or something else? Are there any debugger?

Thank you very much.

Through the Debug class.

Is it possible to set break then watch variables call stack when debugging? like visual studio?

Thank you.

Unfortunately not at this time. It’s a feature often asked for and I believe it is on the roadmap. However it might be dependent on both related developments within the Mono project and Unity eventually upgrading their version of Mono.