Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Ray

Mô tả

Ray is a beautiful, lightweight desktop app that helps you debug your app. There’s a free demo available that can be unlocked with a license.

After installing this plugin, you can use the ray() function to quickly dump stuff. Any variable(s) that you pass to ray() will be displayed.

Here some examples:

ray('Hello world');

ray(['a' => 1, 'b' => 2])->color('red');

ray('multiple', 'arguments', 'are', 'welcome');

ray()->showQueries();

There are many other helper functions available on Ray that allow you to display things that can help you debug such as runtime and memory usage, queries that were executed, and much more.

Full Documentation

The extensive documentation can be found here.

It contains the installation instructions for WordPress.

After it is installed you can use any of the framework agnostic and WordPress specific functions.

Hỏi đáp

Want to know how to get started? Head over to our extensive docs.

Want to report a bug? Create an issue at the spatie/wordpress-ray repo.

Đánh giá

7 Tháng Mười Một, 2023
I use this plugin everyday while doing WordPress dev work. It's a great tool.
29 Tháng Năm, 2023
Ray has been a great to use when working on Laravel sites, so I'm glad they've made the effort to also support WordPress. It's definitely worth the money!
30 Tháng Ba, 2023
I've been using Ray for quite a while now and I have to say, it's one of the most useful dev tools I use! Gone are the days of spewing vardump and print_r to the screen!
22 Tháng Mười, 2021
Makes debugging a breeze without dumping out information to the screen. So simple to setup that is is just as easy as doing a var_dump and has so many more features.
14 Tháng Một, 2021
If you are constantly writing var_dump() or error_log() to debug your code you'll know it gets painful when debugging larger and more complex code. Using Ray is the simple way to debug without the hassle of reading through Log files or half rendered / broken pages on the browser. A couple of hours of using Ray and you will have recouped the cost in lost time.
14 Tháng Một, 2021
I was having trouble debugging an issue in my WP Cron task. It's quite complex and calls out to an external database in multiple places, so trying to figure out where the issue was started driving me insane. As there was a PHP error in my code (I was trying to call a method on null) my logger wasn't picking up any issues, nor was it even logging sometimes and no exceptions were being thrown. After installing Ray it worked right away with no setup (other than installing it with Composer). I then managed to find the issue in about 5 minutes because of Ray's simplicity and speed in giving you the output. The UI is minimal which is perfect as nothing gets in your way while trying to debug and having everything formatted beautifully is a massive win over basic debug logging. I bought a licence right away and would have happily paid 2x the price I did. Amazingly simple yet powerful 👌
Đọc tất cả 10 đánh giá

Người đóng góp & Lập trình viên

“Ray” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Ray” đã được dịch qua 1 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Ray” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

You can find the changelog at GitHub.