Lack of error messages make mlscript tough to work with

Forum to discuss MLScript plugin that enables VBScript and JavaScript scripting within MLServer3.
User avatar
simonmason
Expert
Expert
Posts: 855
Joined: Tue Dec 26, 2006 9:06 pm
Contact:

Lack of error messages make mlscript tough to work with

Postby simonmason » Fri Jan 02, 2009 11:00 pm

I just spent an hour debugging a script. The test button showed no errors, the MLServer log showed no errors (I tried all logging levels). The only way I could find the issue was to cut and paste a LogMLEvent line by line through the code until I found the line it was failing on. In this particular case it was a variable name spelled incorrectly (this is usually not an issue in vbscript?). There needs to be some sort of error logging if mlscript is going to be viable for porting some of my homeseer scripts over - something I have been working on. Am I missing something or is this the way it is in the current version? Thanks.
Simon D. S. Mason

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Postby CinemarDave » Sat Jan 03, 2009 1:38 pm

Trapping and reporting the MLScript error line will be added into an upcoming release of MLServer.

User avatar
simonmason
Expert
Expert
Posts: 855
Joined: Tue Dec 26, 2006 9:06 pm
Contact:

Postby simonmason » Sat Jan 03, 2009 8:01 pm

Thanks, as mentioned before please add the following also - launching an external editor to edit script files.
Simon D. S. Mason

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Postby CinemarDave » Sat Jan 03, 2009 9:20 pm

MLScript 3.0.9 is available for download. This version adds in the error trapping and reporting. Error messages are sent to the MLScript event log.

This version does not launch an external editor. This may come in another release.

User avatar
simonmason
Expert
Expert
Posts: 855
Joined: Tue Dec 26, 2006 9:06 pm
Contact:

Postby simonmason » Sun Jan 04, 2009 8:35 am

Thanks, I just installed. What error logging level is required on the server in order to see the messages?
Simon D. S. Mason

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Postby CinemarDave » Sun Jan 04, 2009 11:50 am

The errors go to the MLScript event log right now. They will not show up in the MLServer event log. The next release of the plugin will send the messages there too.

User avatar
simonmason
Expert
Expert
Posts: 855
Joined: Tue Dec 26, 2006 9:06 pm
Contact:

Postby simonmason » Sun Jan 04, 2009 12:51 pm

Where is this log written to? I can't find it anywhere. Thanks.
Simon D. S. Mason

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Postby CinemarDave » Sun Jan 04, 2009 1:42 pm

MLScripts Plugin / Event Tab - Make sure to turn on logging.

RZajcew
Intermediate
Intermediate
Posts: 257
Joined: Mon Jul 21, 2008 6:31 pm
Contact:

Postby RZajcew » Mon Jan 05, 2009 12:08 am

When running the installer, it appears that the latest version is 3.0.8. However, if you download and install MLScript anyway, it does download and install version 3.0.9.

[And thanks for adding the error trapping.]

- Roman

deanb2
Senior Member
Senior Member
Posts: 181
Joined: Tue Feb 14, 2006 7:21 pm
Contact:

Postby deanb2 » Mon Jan 12, 2009 6:42 pm

Better with the error message, but a line number would be really handy.

And it seems that once an error has occurred, every run of that script after that gives a 'DoCmd Error #13 - Type Mismatch', until MLServer is restarted.

Dean


Return to “MLScript”

Who is online

Users browsing this forum: No registered users and 1 guest