该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Apermo Xdebug

描述

This plugin helps you to read Xdebug messages inside the WordPress backend, without the need to adjust them everytime.
It simply indents the Xdebug messages, so that these are no longer partly hidden underneath the admin menu.
And it will also give you links to directly search for the error message on Google or Stackoverflow.

If you have issues or want to help head over to GitHub!

安装

  1. Upload the plugin files to the /wp-content/plugins/apermo-xdebug directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the ‘Apermo AdminBar’ plugin through the ‘Plugins’ menu in WordPress
  3. That’s all folks.

常见问题

Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/apermo-xdebug directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the ‘Apermo AdminBar’ plugin through the ‘Plugins’ menu in WordPress
  3. That’s all folks.
Are there any requirements?

Yes, of course, you need to have Xdebug active on your webserver.

Where are the Plugin Options?

This plugin does not have any, so just activate it, and relax.

Can I change or add more search engines?

Sure, use the filter apermo_xdebug_search_urls and alter the array.
The URL requires to add ‘+search_url+’ since this will be added to the JavaScript of the plugin.
This is raw Javascript added here, it’s not ideal, but I think more flexible in case you need to do something more with the search_url string.

Should I use this on a production website?

Since you should not use ‘display_errors’ on a production system, it makes no sense using this plugin there.
The plugin automatically skips it’s execution if display_errors is turned off or Xdebug is not active.
At the current moment I decided against automatically disabling the plugin in this cases, I might reconsider this in the future.

I have an issue, or I want to help with the development of this plugin.

Head over to the GitHub Repository and start reading. Every bit of help is highly appreciated!

Note on the Version Requirement

The Plugin will actually work with lower WordPress Versions, but in that case translations won’t work. But you should consider upgrading you WordPress in that case.

评价

2018 年 11 月 22 日
God, that is so annyoing when xdebug is not visible in wp-admin. Thank you for this!
阅读所有1条评价

贡献者及开发者

“Apermo Xdebug” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Apermo Xdebug”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.2.2

  • Bugfix: automatically removed css tag if there was only var_dump and no error

1.2.1

  • added support for Xdebug var_dump messages

1.2.0

  • added a filter to provide the options to add more search engines
  • automatically disable(or rather skip execution) if display_errors is turned off

1.1.0

  • optimized to work inside the Gutenberg view
  • automatically disable in case Xdebug is not installed
  • automatically remove all CSS if no errors are thrown

1.0.1

  • Added the Google and Stackoverflow links

1.0.0

  • Initial Release