|
|
|
|
MioFactory TechNotes
Help
Products
|
|
Scripting Errors| |
The errors messages are displayed by MioFactory instead of the application itself.
If the log is enabled (default), the errors messages are recorded.
Possible Errors:
| {o} | MioScript Errors
This kind of error is displayed before the application is build.
Most of the time, the errors are easy to correct. The error message contains the script file name, the exact line number and the source code.
| | {o} | MioScript Runtime Errors
Runtime errors occurs when the application is running.
This kind of error can be more difficult to correct: as the MioScript source code is converted before being interpreted, the exact line number and script file name are not known.
The description of the error and the line of code involved will help you to find and correct the error.
If you are unable to find where an error is, you can use alert in various area of your code to find where the error is.
| | {o} | JavaScript Runtime Errors
JavaScript errors can also be hard to find because when js files are used, the line number or source file can be wrong.
|
Log File| |
The log file is a powerful tool to find any kind of errors.
You can add information in the log file with log in MioScript and log in JavaScript.
You can view the log file at anytime (including when the application is running) from MioFactory or with a web browser (refresh the page to view the updates).
The path to the log file is in the install folder if the application is installed, or in a temporary folder otherwise.
The path can be retrieved from MioScript with path.log.
The log can be enabled or disabled from MioFactory.
|
Finding Errors Remotely| |
From MioFactory, you can set the log to be created in all time.
Create a version of your application with the log file always enabled, and send it to the computer where the error occurs.
Your application should be installed on the user's computer so the log file can be easily retrieved in the folder where the application is installed. The user can send you the log.htm file via email as an attachment.
|
|
|
|
|