Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. PHP
  3. Tracy

Tracy

NOASSERTIONPHPv2.11.4

A powerful debugging and error visualization tool for PHP developers with a friendly UI, logging, profiling, and AJAX/CLI support.

Visit WebsiteGitHubGitHub
1.8k stars221 forks0 contributors

What is Tracy?

Tracy is a debugging library for PHP that provides rich error visualization, logging, profiling, and development tools. It replaces standard PHP error messages with interactive, user-friendly displays and includes a debug bar, variable dumper, stopwatch, and support for AJAX/CLI debugging.

Target Audience

PHP developers of all levels who want a more intuitive and powerful debugging experience than PHP's native error reporting, especially those working on web applications or using frameworks like Nette, Laravel, or Symfony.

Value Proposition

Tracy stands out with its visually engaging error pages, environment-aware behavior (safe for production), and comprehensive toolset that speeds up debugging without requiring complex setup or extensions.

Overview

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.

Use Cases

Best For

  • Visualizing PHP errors and exceptions with interactive source code highlighting
  • Adding a persistent debug bar with runtime information to web applications
  • Debugging AJAX requests and command-line PHP scripts
  • Profiling PHP code performance with microsecond precision
  • Logging errors securely in production with email notifications
  • Dumping variables in a readable format with themes and depth control

Not Ideal For

  • Projects with immutable Content Security Policies that cannot accommodate 'unsafe-inline' or dynamic nonces
  • Headless APIs or microservices where visual error pages provide no benefit and add overhead
  • Environments where server configuration (e.g., nginx try_files settings) cannot be modified
  • Teams already using Xdebug with IDE integration for step-by-step debugging and profiling

Pros & Cons

Pros

Interactive Error Visualization

Replaces cryptic PHP errors with highlighted source code and clear explanations, making debugging intuitive, as shown in the live examples of exceptions and notices.

Environment-Aware Safety

Auto-detects development vs production modes, logging errors securely on live servers and displaying them only on localhost, preventing sensitive data exposure.

Comprehensive Dumping Tools

Offers dump(), bdump(), and dumpe() with themes, depth control, and location hints for detailed variable inspection, enhancing developer workflow.

Persistent Debug Bar

Provides a floating panel with runtime information and custom panels that remembers position across page reloads, aiding in continuous debugging sessions.

Cons

Content Security Policy Hurdles

Requires adding 'unsafe-inline' or managing nonces in CSP, which can be complex or insecure, as admitted in the README's configuration examples.

Server Configuration Dependencies

Needs specific nginx settings (e.g., try_files with args) and early session management for AJAX support, adding deployment complexity.

Setup and Initialization Overhead

Must be enabled before any output and configured with IP/cookie tokens for development mode, which can be cumbersome for quick setups.

Frequently Asked Questions

Quick Stats

Stars1,824
Forks221
Contributors0
Open Issues11
Last commit2 days ago
CreatedSince 2012

Tags

#php-debugging#developer-tools#profiler#php-library#logging#error-handling#profiling#ajax#php#debugger

Built With

P
PHP

Links & Resources

Website

Included in

PHP32.5k
Auto-fetched 1 day ago

Related Projects

WhoopsWhoops

PHP errors for cool kids

Stars13,241
Forks599
Last commit4 months ago
Symfony VarDumperSymfony VarDumper

Provides mechanisms for walking through any arbitrary PHP variable

Stars7,441
Forks100
Last commit6 days ago
KintKint

Kint - Advanced PHP dumper

Stars2,819
Forks286
Last commit3 months ago
PHPBenchPHPBench

PHP Benchmarking framework

Stars1,994
Forks132
Last commit20 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub