About Tracy Debugger
Tracy debugger from Nette with several PW specific custom tools.
|Category 1||Development Tools|
Modules that have more to do with assisting development of a site rather than managing its content.
Modules that maintain activity logs or monitor and report activity in some form or another.
Close to stable, but users are advised to be cautious and test thoroughly.*
|Date Added||February 20, 2016|
|Last Updated||May 1, 2017|
This module's files should be placed in /site/modules/TracyDebugger/
How to install or uninstall modules
Processwire module for running the Tracy debugger from Nette (https://tracy.nette.org/).
Tracy library is a useful helper for everyday PHP programmers. It helps you to:
- quickly detect and correct errors with an expandable call stack tree
- log errors (and optionally receive emails when an error occurs in production mode)
- dump variables
- measure execution time of scripts/queries
- see memory consumption between breakpoints
Includes config settings for a variety of Tracy options.
A custom ProcessWire panel in the debug bar provides all the information from the PW admindebug tools, as well a tree version of the current Page object.
Additionally, content can be dumped to the page via TD::dump() or to the debug bar via TD::barDump(),or logged via TD::log() from PW template files. eg.
TD::debugAll($page, 'Current Page'); Aliases; debugAll(), da() TD::barDump($page, 'Current Page'); Aliases; barDump(), bd() TD::dump($page); Aliases; dump(), d() TD::log('Log Message'); Alias; l() TD::fireLog('Log Message'); Alias; fireLog(), fl() TD::addBreakpoint('Name'); Alias; addBreakpoint(), bp() TD::timer(); Aliases; timer(), t()
By default, manually logged content is sent to: /site/assets/logs/tracy/info.log,but you can specify an optional second parameter to one of the following: 'debug', 'info', 'warning', 'error', 'exception', 'critical' files.
TD::log('Log Message', 'debug'); which will put the message in the debug.log file.
To make fireLog work, you need to add some browser extensions:
####Support forum: https://processwire.com/talk/topic/12208-tracy-debugger/
This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
(See included LICENSE file for full license text.)
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- File Validator
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.