# Developer Module

Whoops error pages and a debug bar for Magento 2 development.

## Details

- Platform: Magento 2
- Published: December 20, 2024
- Distribution: GitHub (open source)
- Price: Free
- Install: `composer require awesoft/module-developer`
- View on GitHub: https://github.com/awesoft/module-developer

## Overview

An open-source module that makes a Magento 2 development environment easier to work in. It replaces Magento's plain
error output with the Whoops error handler, so an uncaught exception shows the full stack trace, the surrounding
code and the request details right on the page, and it adds a developer debug bar for inspecting what a request did.

## Features

- **Whoops error handler:** every uncaught exception renders with a navigable stack trace, code context and the request's GET, POST, cookie and server data.
- **Developer debug bar:** a toolbar on every page with Request, Performance, Database, Layout, Events and Environment panels, each showing its count or timing at a glance.
- **Database panel:** the slowest queries with their timings, a Format SQL toggle with syntax highlighting, and a row filter.
- **Layout panel:** the page's layout handles and every block with its class and template, filterable by name.
- **AJAX inspection:** the bar records AJAX and REST calls made after page load, so you can open any one of them and see its own panels.
- **Storefront and admin:** shows on both, with a mobile-friendly layout.
- **Admin settings:** turn Whoops and the debug bar on or off, open stack frames in your editor (such as PhpStorm) with server-to-local path mapping, and mask extra GET, POST, cookie, server and env keys. The debug bar only runs in developer mode and follows Magento's developer IP restrictions.

## Install

```bash
composer require awesoft/module-developer
```

---

Canonical: https://awesoft.dev/magento/module-developer/
Markdown: https://awesoft.dev/magento/module-developer/index.md
