Posted by develCuy on August 2, 2012 at 7:16pm
Acronym of "Lazy Guinea Pig".
Created by the laziest, LGP is a Drupal library for slackers. Aren't you?
Features
ATM, LGP provides a set of tools to debug Drupal.
- Write given debug message to a temporary file, the LGP file
- Low memory footprint, skip Database bottleneck
- Useful where Devel's dsm() does not works or when you need an alternative debug log, by example: while debugging services.module (instead of Services log) or during hook_init().
- Centralized debug file, LGP file is shared by drupal installations that use same temporary directory
Functions
LGP implements the following functions:
- lgp_print($message): Log $message to LGP file.
- lfp($var, $keys_only = FALSE): Log to LGP file in print_r format. Alternatively print keys only (if passed an array as argument)
- lfd($var): Log $var to LGP file in var_dump format.
- lfx($var): Log $var to LGP file in var_export format.
- lbt($ignore_args = TRUE): Log backtrace to LGP file, without functions arguments (default behavior see debug_backtrace)
Drush commands
LGP provides the following drush command:
- lgp-console: Console watcher. Shows log of functions: lfp(), lfd() and lfx().
Alias: lgc
Usage:
$ drush lgc
Credits
Sponsored by Dilygent.
Downloads
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 3 sites currently report using this module. View usage statistics.
- Downloads: 87
- Last modified: May 7, 2013
