|
Errors Handling
It is essential to know exactly
what is wrong when a project or script execution fails. However,
it is important to realize that it is dependent on the engine
that processes the script:
Microsoft Script Control
(embedded)
Editor highlights the line where the problem occured
with the red color.
The cursor is positioned at the troubled syntax token.
The Script Errors list box at the bottom of the main
window shows the description of the problem.
Clicking a line in the Script Errors list positions the
cursor again.
Microsoft Script Control is not available for projects (*.wsf),
but only for scripts (*.vbs, *.js, ...).
Windows Script Host -
window based
The message box shows the description of the problem.
The information contains line and column of the source code where
the problem occured. Having this information use Find WSH
Error function to locate
the problem in either a project or a script.
Windows Script Host -
command line based
The problem description is written to the console.
Editor leaves the console (DOS-box) open on purpose for this. The
information contains line and column of the source code where the
problem occured. Having this information use Find WSH
Error function to locate
the problem in either a project or a script.
See Also
Find
WSH Error, Workspace
Settings, Options
|