Debugging Applications

There are several different types of errors that can occur in your application at run-time.  The following sections describe how your application handles each type of error.

User Input Validation Errors

Your application reports an error message to the application user.  The error message is displayed in a pop-up dialog or in-line immediately at the time of the error and provides the ability for the application user to correct the error.

Iron Speed Designer automatically creates input field validation code for all supported field types.  This validation code has been thoroughly tested.  End-users are notified of input errors directly on the web page, and are given a chance to correct their errors and resubmit the entry.  No system administrator notification or event logging is provided for validation errors.

Internal Errors

If there are any internal errors caused by incorrect configuration or because of the unavailability of a resource, an error message is displayed on a web page for the application user.  Errors are logged to the server’s event log and can be viewed through the Event Viewer.

Database Exception Errors

Database errors occur when the SQL statements executed are invalid or the database is not connected.

Iron Speed Designer automatically creates syntactically correct SQL queries.  No system administrator notification or logging is provided for database errors.  Serious errors are logged to the server’s operating system event log and can be viewed through the Event Viewer.  You can configure the application to log all database errors via the LogDatabaseExceptions and LogCommitExceptions settings in your application’s Web.config file.

Application Logic Errors

Application logic errors occur when the software itself has a bug.

Iron Speed Designer automatically creates correct, highly reliable, application logic.  However, you may extend or change the application code, which can introduce errors (bugs) into the application program.  Unhandled errors within a page are written to the event log and can be viewed via the Event Viewer.

Event Logging

Certain events are logged in the Windows Event Viewer.  You can locate these in the Application Log section of the Event Viewer.  The Source will be listed as either “Application” or the name of your application.

See

How to Debug an Application

Tracing and Event Logging

Debugging Database Errors

Debugging Inside Iron Speed Base Classes

Debugging with Visual Studio .NET

Testing Iron Speed Designer Applications