9 registered users
in last 24 hours
For realtime monitoring of the notices and debugging information simply tail the error log. Make sure that debugging is activated in ~/etc/config.tcl
[projop]# tail -f ~/log/error.log
Most tcl files contain already log message that can be filtered using 'grep':
[projop]# tail -f ~/log/error.log | grep intranet-resource-management-procs::
Writing comments to Browser
'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"]
Debugging Permissions & Privileges
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.
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:
- packages/acs-tcl/tcl parameter-procs.tcl
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: