cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

No error line number in log for JavaScript Service sometimes

seanccc
17-Peridot

No error line number in log for JavaScript Service sometimes

Hi, 

Sometimes the log, including the Application log and Script log,  doesn't tell which line the error occurs like the screenshot below : 

 

How can I know where the problem is ?  (except print logs in the service to guess )

 

seanccc_1-1606016186729.png

 

 

seanccc_0-1606016162918.png

 

ThingWorx version : 8.5.5

 

Regards,

Sean

2 REPLIES 2

The script editor here is not a fully functional compiler, so there's not a warning for which line has the error, and normaly JS scripts here are short so it's not hard to locate the problem.

 

You can use try catch to find the error, or cut scripts to smaller sections and test them indepently (check if the results of each section is correct)

anarwal
12-Amethyst
(To:seanccc)

Hi @seanccc , you will find much more help using scripterror.log file present in /ThingworxPlatforms/logs folder.

 

Regards

Ankur

Top Tags