WP Manifestindependent plugin directory
manifest / developer / dustpress-debugger

DustPress Debugger

WordPress plugin that provides handy ajaxified debugger tool for DustPress based themes.

★ 3stars
81release downloads
70kcomposer installs
2.0.0latest · 3 years ago

Install

Download dustpress-debugger-chrome.zip From the 2.0.0 release on GitHub, Jan 27, 2023

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/devgeniem/dustpress-debugger/releases/download/2.0.0/dustpress-debugger-chrome.zip

On Packagist as devgeniem/dustpress-debugger:

composer require devgeniem/dustpress-debugger
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

geniem-github-banner

DustPress Plugin: DustPress Debugger

DustPress Debugger is a WordPress plugin which displays the data loaded by your current DustPress model in a json viewer.

Installation

Composer

Install with composer by running:

$ composer require devgeniem/dustpress-debugger

OR add it into your composer.json:

{
  "require": {
    "devgeniem/dustpress-debugger": "*"
  }
}

Manually

  • Clone the DustPress Debugger repository into you WordPress plugins directory.

Activation

To enable the debugger go to the WordPress dashboard and activate the plugin. After activation users with with the manage_options capability can enable the debugger on the user profile page by checking the DustPress Debugger enabled checkbox.

You can also activate the debugger on any user by defining DUSTPRESS_DEBUGGER_ALWAYS_ON constant in your project. This will override the manual settings, so it is not recommended to use this setting in production!

Usage

Install the browser extension, open your devtools and select the "dustpress-debugger" tab. If on chrome you will need to request scripting & cookie access to the relevant urls when opening the view for the first time.

Building the browser extension

Select the specified node version in the .nvmrc file by installing nvm and running:

nvm install # install specified node version
nvm use # use specified node version

Or by installing it manually.

Then run the following commands:

npm ci # install npm packages
npm run build # build the extensions assets

For a firefox build which uses manifest version 2 you can run:

npm run build -- --env=target=firefox

The built assets will be in the dist/ folder.

Development version

You can build the development version of the extension by running the commands specified in the building section but instead of npm run build run the following:

npm run watch

Or for the firefox version:

npm run watch -- --env=target=firefox

This will build the assets and wait for changes to files. Then add the contents of the dist/ folder as a temporary or unpackaged plugin depending on which browser you are using.

Add data with JavaScript

You can manually add data into the debugger by using the extend function of the global debugger object in JavaScript. The first parameter is your data. The second parameter is the key under which your data is added. You can add multiple data sets under the same key.

window.DustPressDebugger.extend('someData', 'my-data-key');

If you are using the DustPress.js plugin, the data loaded via AJAX is automatically added into the debugger view.

Releases

14 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
2.0.0 latest
Jan 27, 2023 3 years ago
dustpress-debugger-chrome.zip +1 asset
81
dustpress-debugger-chrome.zip67
dustpress-debugger-firefox.zip14
Aug 17, 2021 5 years ago
tag only
—
Feb 25, 2021 5 years ago
tag only
—
Nov 3, 2020 5 years ago
tag only
—
Jun 5, 2020 6 years ago
tag only
—
Feb 20, 2020 6 years ago
tag only
—
Oct 18, 2016 10 years ago
tag only
—
Jun 21, 2016 10 years ago
tag only
—
Jun 13, 2016 10 years ago
tag only
—
Jun 13, 2016 10 years ago
tag only
—
Jun 11, 2016 10 years ago
tag only
—
Jun 10, 2016 10 years ago
tag only
—
Jun 8, 2016 10 years ago
tag only
—
May 26, 2016 10 years ago
tag only
—