{"id":36239088,"url":"https://github.com/glowieframework/debugger","last_synced_at":"2026-01-11T06:42:03.039Z","repository":{"id":223951057,"uuid":"761386819","full_name":"glowieframework/debugger","owner":"glowieframework","description":"Glowie debug bar plugin","archived":false,"fork":false,"pushed_at":"2025-08-19T18:19:56.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-19T20:34:07.532Z","etag":null,"topics":["debug-bar","debugger","glowie"],"latest_commit_sha":null,"homepage":"https://glowie.gabrielsilva.dev.br/debugger","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glowieframework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-21T19:18:35.000Z","updated_at":"2025-07-03T14:24:46.000Z","dependencies_parsed_at":"2024-02-22T23:26:06.105Z","dependency_job_id":"c2a0d8ae-686d-426a-b282-c34a5405eccd","html_url":"https://github.com/glowieframework/debugger","commit_stats":null,"previous_names":["glowieframework/debugger"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/glowieframework/debugger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glowieframework%2Fdebugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glowieframework%2Fdebugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glowieframework%2Fdebugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glowieframework%2Fdebugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glowieframework","download_url":"https://codeload.github.com/glowieframework/debugger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glowieframework%2Fdebugger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28295756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debug-bar","debugger","glowie"],"created_at":"2026-01-11T06:42:02.380Z","updated_at":"2026-01-11T06:42:03.030Z","avatar_url":"https://github.com/glowieframework.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Debugger for Glowie\r\nDebugger is a plugin for [Glowie Framework](https://github.com/glowieframework/glowie) with a powerful debug bar for developers.\r\n\r\n\u003cimg style=\"width: 100%; max-width: 600px;\" src=\"https://i.imgur.com/mfcu69M.png\" alt=\"Debugger\"\u003e\r\n\r\n## Features\r\n- Beautiful and simple debug bar with zero configuration\r\n- Print and filter messages, warnings, errors and variables to a console window\r\n- Catch and print exceptions and stack traces to the console\r\n- Measure long operations to a timeline and improve your app performance\r\n- Inspect Request and Response variables and headers\r\n- Inspect Session and Cookies data\r\n- Log SQL queries, bindings and query durations\r\n- Inspect rendered views, layouts and all its parameters\r\n- Inspect application info, routes, memory usage, software versions, request time and more\r\n- Automatic light and night mode themes\r\n\r\n## Installation\r\nInstall in your Glowie project using Composer:\r\n\r\n```shell\r\ncomposer require glowieframework/debugger\r\n```\r\n\r\nThen add the Debugger class to the `app/config/Config.php` file, into the `plugins` array:\r\n\r\n```php\r\n'plugins' =\u003e [\r\n    // ... other plugins here\r\n    \\Glowie\\Plugins\\Debugger\\Debugger::class,\r\n],\r\n```\r\n\r\nInside your application main layout or desired view, add the Skeltch directive to the bottom of the page, before the closing `\u003c/body\u003e` tag:\r\n\r\n```html\r\n\u003cbody\u003e\r\n    \u003c!-- your page content here --\u003e\r\n    { debugger }\r\n\u003c/body\u003e\r\n```\r\n\r\nIf you are not using Skeltch templating engine, you can also use the default PHP call:\r\n\r\n```php\r\n\u003cbody\u003e\r\n    \u003c!-- your page content here --\u003e\r\n    \u003c?php \\Glowie\\Plugins\\Debugger\\Debugger::render(); ?\u003e\r\n\u003c/body\u003e\r\n```\r\n\r\n## Debug mode\r\n**The debug bar must not be used in production mode.** In order to work, the `APP_DEBUG` configuration in your app `.env` file must be set to `true`. **Don't forget to disable this in production environment.**\r\n\r\n```env\r\nAPP_DEBUG=true\r\n```\r\n\r\n### Enabling or disabling the debug bar at runtime\r\nTo enable or disable the rendering of the debug bar at runtime, use:\r\n\r\n```php\r\nuse Glowie\\Plugins\\Debugger\\Debugger;\r\n\r\nDebugger::enable();\r\n\r\nDebugger::disable();\r\n```\r\n\r\n\u003e**Note:** The `enable()` method won't do anything if the debug mode is disabled in your app env.\r\n\r\n## Usage\r\n\r\n### Console window\r\nTo send messages to the console window, use any of the following methods:\r\n\r\n```php\r\nuse Glowie\\Plugins\\Debugger\\Debugger;\r\n\r\nDebugger::log('Hello world!'); // Prints an info message\r\n// or\r\nDebugger::info('Hello world!');\r\n\r\nDebugger::error('Something went wrong...'); // Prints an error message\r\n\r\nDebugger::warning('Remember to check the docs.'); // Prints a warning message\r\n\r\nDebugger::dump($myVar); // Dumps a variable to the console\r\n```\r\n\r\n### Exceptions window\r\nTo catch exceptions and print them to the exceptions tab, use:\r\n\r\n```php\r\nuse Glowie\\Plugins\\Debugger\\Debugger;\r\n\r\ntry {\r\n    throw new Exception('Whoops!');\r\n} catch (Exception $e) {\r\n    Debugger::exception($e);\r\n}\r\n```\r\n\r\n### Timeline window\r\nYou can measure operations using:\r\n\r\n```php\r\nuse Glowie\\Plugins\\Debugger\\Debugger;\r\n\r\nDebugger::startTimer('test', 'My timer description');\r\n// your long operation\r\nDebugger::stopTimer('test');\r\n\r\n// or\r\nDebugger::measure('Test', function(){\r\n    // your long operation\r\n});\r\n```\r\n\r\n### Cross-request data\r\nThe debug bar data is saved only during the current request, and subsequents requests will erase the data.\r\n\r\nIf you need to persist the data over to the next request, use:\r\n\r\n```php\r\nuse Glowie\\Plugins\\Debugger\\Debugger;\r\n\r\nDebugger::startCapture();\r\n// your Debugger calls here\r\nDebugger::stopCapture();\r\n\r\n// or\r\nDebugger::capture(function(){\r\n    // your Debugger calls here\r\n});\r\n```\r\n\r\n### Clear information\r\nIn order to clear the debug bar data, use:\r\n\r\n```php\r\nuse Glowie\\Plugins\\Debugger\\Debugger;\r\n\r\nDebugger::clear(); // Clears the console\r\n\r\nDebugger::clearExceptions(); // Clears the exceptions\r\n\r\nDebugger::clearTimers(); // Clears the timers\r\n\r\nDebugger::clearQueries(); // Clears the queries\r\n```\r\n\r\n## Credits\r\nDebugger and Glowie are currently being developed by [Gabriel Silva](https://gabrielsilva.dev.br).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglowieframework%2Fdebugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglowieframework%2Fdebugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglowieframework%2Fdebugger/lists"}