Debugging

PostgreSQL. You can work directly with the database to do debugging steps like looking directly at tables and testing stored procedures. Start emacs. Type M-x sql-postgres. Press enter for server name and use openacs-dev for database name. You can use C-(up arrow) and C-(down arrow) for command history.

Watching the server log. To set up real-time monitoring of the Aolserver error log, type

less /usr/local/aolserver/log/openacs-dev-error.log

F to show new log entries in real time (like tail -f)
C-c to stop and F to start it up again. 
G goes to the end.
? searches backward 
/ searches forward. 
          

It would be nice if the ratio of useful to (for our purposes) useless text in the log was better than 1:200.

Add a comment
Last modified: Fri May 07 10:04:29 CDT 2004