Page 1 of 1

NOOBIE- Script debugging

Posted: Tue Sep 17, 2024 4:26 pm
by FrankT
Noobie here!
I am not well versed in JS. I have a script that someone else wrote and is timing out.

I would like to know best ways to debug the script? I would like to be able debug line by line, if possible. Or verbose to log file?

I don't see that ability in SwitchScripter application.

Thank you for any help :)

Re: NOOBIE- Script debugging

Posted: Tue Sep 17, 2024 4:47 pm
by sander

Re: NOOBIE- Script debugging

Posted: Tue Sep 17, 2024 7:51 pm
by FrankT
Thanks for the response. The video, it appears for advanced users, which I am not.

I do not even know what application is being used. It does not look like SwitchScripter.

Thank you anyway

Re: NOOBIE- Script debugging

Posted: Wed Sep 18, 2024 11:32 am
by jan_suhr
Scripting in Switch is now done with Microsofts VS Code. That is what you see on the screen.

This is of course only valid if it is a NodeJS script, if it is a Legacy script there are some limited debugging available in the Scripter program. Look in the Legacy Scripter documentation.

Re: NOOBIE- Script debugging

Posted: Fri Sep 20, 2024 8:26 am
by tdeschampsBluewest
Sometime...

Image

Re: NOOBIE- Script debugging

Posted: Fri Sep 20, 2024 9:30 am
by sander
So relatable haha :mrgreen: