[projop]# tail -f ~/log/error.logShow a context of 4 lines before and after an error:
$ tail -f ~/log/error.log | grep -4 "error" /dev/fd/0Most tcl files contain already log message that can be filtered using 'grep':
[projop]# tail -f ~/log/error.log | grep intranet-resource-management-procs::
'ds_comment' writes comments right to the OpenACS console visible right in the browser
Developer tools are available at http://[YOUR_SERVER]/ds
To make sure that tcl libs are sourced with a page call, add the follwing line to your tcl pages. This serves as a shortcut to the more laborious setting using the OpenACS Package Manager.
Example: Source all procs located in ~/packages/intranet-core/tcl/intranet-project-procs.tcl:
ns_eval [source "[acs_root_dir]/packages/intranet-core/tcl/intranet-project-procs.tcl"]
Each page generates a log of all Permissions & Privileges that had been evaluated during page creation.
To see a protocol, please active the OpenACS Developer Toolbar (http://[YOUR_SERVER]/ds) and click the USR button:
The page will refresh and besides showing an input/select field with user accounts, you should see a protocol of all Permissions and Privileges evaluated.
Note:
If you are not running the most recent version of ]po[ you might need to partially update your installation in order to get access to this feature.
Please make sure that you use the latest version of the following files:
Our partner Josep Vela (actio ad futurum) provided an Extension that allows to output debugging data to the Browser console. The package requires TCL 8.5. Documentation is available in ESP only.
We will soon review the package soon and consider adding it to the ]po[ CVS. Meanwhile please find the files below:
Calle Aprestadora 19, 12o-2a
08902 Hospitalet de Llobregat (Barcelona)
Spain
Tel Europe: +34 609 953 751
Tel US: +1 415 200 2465
Mail: info@project-open.com