PHPackages                             alleyinteractive/wp-block-debug - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. alleyinteractive/wp-block-debug

ActiveWordpress-plugin[Debugging &amp; Profiling](/categories/debugging)

alleyinteractive/wp-block-debug
===============================

Adds a panel to the WordPress block editor with a lot of information about the selected block, including methods to set attributes.

v0.3.0(1y ago)154.0k↓34.6%[1 issues](https://github.com/alleyinteractive/wp-block-debug/issues)GPL-2.0-or-laterTypeScriptCI passing

Since Feb 4Pushed 1y ago20 watchersCompare

[ Source](https://github.com/alleyinteractive/wp-block-debug)[ Packagist](https://packagist.org/packages/alleyinteractive/wp-block-debug)[ Docs](https://github.com/alleyinteractive/wp-block-debug)[ RSS](/packages/alleyinteractive-wp-block-debug/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Block Debug
===========

[](#block-debug)

This plugin adds a panel to the WordPress block editor that allows you to inspect and modify the selected block. You can:

- Copy the block name
- Copy the block client ID
- View the block object (from `select('core/block-editor').getBlock()`)
- View the block type object
- View the output of `useBlockProps()`
- View and copy the serialized block HTML
- View and edit most block attributes (see the "Editing Attributes" section below)

Installation
------------

[](#installation)

You can install the plugin via Composer:

```
composer require alleyinteractive/wp-block-debug
```

Editing Attributes
------------------

[](#editing-attributes)

The interface for editing block attributes is generated by passing the block type's `attributes` schema to [`react-jsonschema-form`](https://github.com/rjsf-team/react-jsonschema-form). Some attributes might be easier to edit than others, and some attributes might not be editable at all, depending on how well-defined the attributes are in the schema (you can use the "Dump block type" feature in the debug panel to see it).

Only attributes with a type of `string`, `number`, `integer`, `boolean`, `object`, `array`, or `null` are supported; items of type `array` must also define an `items` schema.

Controlling Access
------------------

[](#controlling-access)

The debug panel is available to users with the `view_block_debug` capability, which is mapped to `edit_posts` by default.

Screenshots
-----------

[](#screenshots)

[![Screenshot of the block editor with the block debug panel open](https://github.com/alleyinteractive/wp-block-debug/raw/main/screenshot-1.png)](https://github.com/alleyinteractive/wp-block-debug/blob/main/screenshot-1.png)

[![Screenshot of the output of "Dump block instance"](https://github.com/alleyinteractive/wp-block-debug/raw/main/screenshot-2.png)](https://github.com/alleyinteractive/wp-block-debug/blob/main/screenshot-2.png)

[![Screenshot of the output of "Dump useBlockProps()"](https://github.com/alleyinteractive/wp-block-debug/raw/main/screenshot-3.png)](https://github.com/alleyinteractive/wp-block-debug/blob/main/screenshot-3.png)

About
-----

[](#about)

### License

[](#license)

[GPL-2.0-or-later](https://github.com/alleyinteractive/wp-block-debug/blob/main/LICENSE)

### Maintainers

[](#maintainers)

[Alley Interactive](https://github.com/alleyinteractive)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance42

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

508d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2679da8ee30c4d7eae16ffd2271484027b3b27be6d7fb8202d5e4c6d210881d?d=identicon)[alleyinteractive](/maintainers/alleyinteractive)

---

Top Contributors

[![dlh01](https://avatars.githubusercontent.com/u/697432?v=4)](https://github.com/dlh01 "dlh01 (24 commits)")

### Embed Badge

![Health badge](/badges/alleyinteractive-wp-block-debug/health.svg)

```
[![Health](https://phpackages.com/badges/alleyinteractive-wp-block-debug/health.svg)](https://phpackages.com/packages/alleyinteractive-wp-block-debug)
```

###  Alternatives

[fjogeleit/prometheus-messenger-middleware

Prometheus Middleware for the Symfony Messenger Component

2255.2k](/packages/fjogeleit-prometheus-messenger-middleware)[spatie/craft-ray

Easily debug CraftCMS projects

1638.6k](/packages/spatie-craft-ray)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
