Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | How to debug SEARCH    

MioFactory

  TechNotes
Adding a Login feature
Deploying an application remotely
Get the real size of a web page
How to create a Business Card
How to create a Desktop Alert
How to create a Desktop Ticker
How to create a Scrolling Alert Software
How to create a Scrolling Ticker
How to create a simple RSS Reader
How to create an icon file .ico
How to debug
LCD Monitor Chart: Screen Resolution, Size, Pitch, Display Area
Managing read marks
Measuring Elements in JavaScript
Media center remote control
Statistics: How to track users and actions
XML Configuration File Format

  Help
01. Introduction
02. Creating an application
03. Application Settings
04. Manipulating Files
05. Editing Code
06. MioFactory Installer
07. Publishing Applications

  Products
All Products
MioDB
MioFactory
Mioplanet Admin Panel

TechNote
How to debug

Product: MioFactory


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.