How to display errors when using LiveCode Server
When developing on the server it is vital that you get as much error information as possible. revServer has a really handy little switch that allows you to tell revServer to output error messages right there in the browser.
Set the errorMode to 'inline'
1) SETUP YOUR ERROR MESSAGES
The screenshot shows the source of a webpage I am working on. Place the following line of script at the top of your irev script. It must be on the first line and surrounded by standard "<?rev" and "?>" tags.
set the errorMode to "inline"
All error messages will now be output directly to the browser.
2) START CODING
As you can see I have entered an invalid line of code. When I go to my webpage an error message should be displayed.