Debugging
To aid application level debugging, you can include the Debug keyword in the URL. For example:
http://webserver/servlet/rwdemo/Debug/dbase/RW.SAMPLE
This will cause the request's parameters and cookies to be displayed at the top of the HTML page.
RealWeb
supports logging of all incoming connections to System.err
. The logging
will appear in a log file generated by the web server or plug-in. To enable
connection logging, copy the supplied reality.properties
file to a directory in
the web server or plug-ins class path. Then edit the realweb.debug
property to
remove the leading comment to enable it. Changes to the
reality.properties
file are only noticed when the RealWeb class is created. You should
restart the web server or plug-in for any
changes to take effect.
The other way of diagnosing faults is to look for Java exceptions in the web server's log file.