Hello, i’ve thinked of such plugin as good helper to “debug” your controller/action/model/view well and so it will be available to all of them.
However i tried many ways todo effricient debug (thru db logging, exceptions caught etc..), but none of them was perfect to meet my needs.
So, why not to make my plugin that i can use anywhere ?
Installation:
Do svn export svn://rubyforge.org/var/svn/act-as-debug at your vendor/plugins folder to get latest version.
|| read more || go to Rubyforge to download.
This plugin come to replace logger.info (not actually replace this method) to be much more effricient and detailed.
to use it, simply do:
act_as_debug <VARIABLE>, {OPTIONS}
<VARIABLE> any type to be inspected.
OPTIONS:
:file => “filename” -will be use /log/ subfolder to append log to <filename> file.
samples:
act_as_debug @pages will log to default application log.
act_as_debug @pages, :file => “pages_inspect” will append to log file ‘pages_inspect.log’ in /log/ folder.
Also you can use debug instead of act_as_debug. (alias)
More will come soon !!
at RubyForge
