NOOBIE- Script debugging

Post Reply
FrankT
Newbie
Posts: 19
Joined: Tue Jul 30, 2024 7:20 pm

NOOBIE- Script debugging

Post 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 :)
sander
Advanced member
Posts: 308
Joined: Wed Oct 01, 2014 8:58 am
Location: Den Bosch

Re: NOOBIE- Script debugging

Post by sander »

FrankT
Newbie
Posts: 19
Joined: Tue Jul 30, 2024 7:20 pm

Re: NOOBIE- Script debugging

Post 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
jan_suhr
Advanced member
Posts: 687
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: NOOBIE- Script debugging

Post 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.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
User avatar
tdeschampsBluewest
Member
Posts: 127
Joined: Tue Jun 01, 2021 11:57 am

Re: NOOBIE- Script debugging

Post by tdeschampsBluewest »

Sometime...

Image
Do you like the Enfocus Apps developed by Bluewest?
Feel free to leave a comment on the Appstore!
sander
Advanced member
Posts: 308
Joined: Wed Oct 01, 2014 8:58 am
Location: Den Bosch

Re: NOOBIE- Script debugging

Post by sander »

So relatable haha :mrgreen:
Post Reply