Title: Ray
Author: freekmurze
Published: <strong>13 Januari 2021</strong>
Last modified: 10 Desember 2025

---

Cari plugin

![](https://ps.w.org/spatie-ray/assets/banner-772x250.png?rev=2455717)

![](https://ps.w.org/spatie-ray/assets/icon.svg?rev=2796507)

# Ray

 Oleh [freekmurze](https://profiles.wordpress.org/freekmurze/)

[Unduh](https://downloads.wordpress.org/plugin/spatie-ray.1.7.10.zip)

 * [Detail](https://id.wordpress.org/plugins/spatie-ray/#description)
 * [Ulasan](https://id.wordpress.org/plugins/spatie-ray/#reviews)
 * [Pengembangan](https://id.wordpress.org/plugins/spatie-ray/#developers)

 [Bantuan](https://wordpress.org/support/plugin/spatie-ray/)

## Deskripsi

[Ray](https://myray.app) is a beautiful, lightweight desktop app that helps you 
debug your app. There’s a [free demo](https://myray.app) available that can be unlocked
with a [license](https://spatie.be/products/ray).

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](https://spatie.be/docs/ray/v1/usage/framework-agnostic-php-project#measuring-performance-and-memory-usage),
[queries that were executed](https://spatie.be/docs/ray/v1/usage/wordpress#showing-queries),
and much more.

### Full Documentation

The extensive documentation can be found [here](https://spatie.be/docs/ray).

It contains the [installation instructions](https://spatie.be/docs/ray/v1/installation-in-your-project/wordpress)
for WordPress.

After it is installed you can use any of the [framework agnostic](https://spatie.be/docs/ray/v1/usage/framework-agnostic-php-project)
and [WordPress specific functions](https://spatie.be/docs/ray/v1/usage/wordpress).

## Tanya Jawab

Want to know how to get started? Head over to [our extensive docs](https://spatie.be/docs/ray).

Want to report a bug? Create an issue at the [spatie/wordpress-ray](https://github.com/spatie/wordpress-ray)
repo.

## Ulasan

![](https://secure.gravatar.com/avatar/5e413954117cc0295659c65947be7f47c1af577bfba4150704dc46bd6d58f9bd?
s=60&d=retro&r=g)

### 󠀁[Very Helpful Dev Tool](https://wordpress.org/support/topic/very-helpful-dev-tool/)󠁿

 [Kevin](https://profiles.wordpress.org/kevmarsden/) 7 November 2023

I use this plugin everyday while doing WordPress dev work. It’s a great tool.

![](https://secure.gravatar.com/avatar/e0d46c630db21b5ccd3e63f230d0a18e274e6c9ca748949a137aeae73aaae436?
s=60&d=retro&r=g)

### 󠀁[Awesome debugging tool](https://wordpress.org/support/topic/great-debugging-tool-5/)󠁿

 [Kirk Beard](https://profiles.wordpress.org/kirkbeard/) 29 Mei 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!

![](https://secure.gravatar.com/avatar/9c5813f24d1c3617dc92c4020fd4c55eba140ccc61cb68eed77b711819d048ee?
s=60&d=retro&r=g)

### 󠀁[Extremely helpful tool!](https://wordpress.org/support/topic/extremely-helpful-tool-3/)󠁿

 [John Hawkins](https://profiles.wordpress.org/vegasgeek/) 30 Maret 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!

![](https://secure.gravatar.com/avatar/0aaa2c3a0bd2915cbeddca59d0762691478a1d17e846124ae9ce2e3cf7577104?
s=60&d=retro&r=g)

### 󠀁[Great debugging tool](https://wordpress.org/support/topic/great-debugging-tool-4/)󠁿

 [stirrell42](https://profiles.wordpress.org/stirrell42/) 22 Oktober 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.

![](https://secure.gravatar.com/avatar/379fd411ee29c932b41ddc083c9bd39a0a616bdd64332b4b0f2701a2f243f289?
s=60&d=retro&r=g)

### 󠀁[Debugging your code made simple](https://wordpress.org/support/topic/debugging-your-code-made-simple/)󠁿

 [Dave Bolger](https://profiles.wordpress.org/daveapb/) 14 Januari 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.

![](https://secure.gravatar.com/avatar/0eb0c125a95bbb96a00c31b474c67d7761c87964bd9ba973bd3e4b896097bdb5?
s=60&d=retro&r=g)

### 󠀁[Where logging fails, Ray prevails](https://wordpress.org/support/topic/where-logging-fails-ray-prevails/)󠁿

 [sebkay](https://profiles.wordpress.org/sebkay/) 14 Januari 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 👌

 [ Baca semua 10 ulasan ](https://wordpress.org/support/plugin/spatie-ray/reviews/)

## Kontributor & Pengembang

“Ray” adalah perangkat lunak open source. Berikut ini mereka yang sudah berkontribusi
pada plugin ini.

Kontributor

 *   [ freekmurze ](https://profiles.wordpress.org/freekmurze/)

“Ray” telah diterjemahkan dalam 1 bahasa. Terima kasih kepada [para penerjemah](https://translate.wordpress.org/projects/wp-plugins/spatie-ray/contributors)
untuk kontribusi-nya.

[Terjemahkan “Ray” dalam bahasa Anda.](https://translate.wordpress.org/projects/wp-plugins/spatie-ray)

### Tertarik mengembangkan?

[Lihat kode](https://plugins.trac.wordpress.org/browser/spatie-ray/), periksa [repositori SVN ](https://plugins.svn.wordpress.org/spatie-ray/),
atau mendaftar ke [log pengembangan](https://plugins.trac.wordpress.org/log/spatie-ray/)
melalui [RSS](https://plugins.trac.wordpress.org/log/spatie-ray/?limit=100&mode=stop_on_copy&format=rss).

## Log Perubahan

You can find the changelog [at GitHub](https://github.com/spatie/wordpress-ray/blob/master/CHANGELOG.md).

## Meta

 *  Versi **1.7.10**
 *  Diperbarui **4 bulan yang lalu**
 *  Instalasi Aktif **500+**
 *  Versi WordPress ** 5.5 atau yang terbaru **
 *  Diuji hingga **6.8.5**
 *  Versi PHP ** 8.0 atau yang terbaru **
 *  Bahasa
 * [English (US)](https://wordpress.org/plugins/spatie-ray/) dan [Swedish](https://sv.wordpress.org/plugins/spatie-ray/).
 *  [Terjemahkan dalam bahasa Anda](https://translate.wordpress.org/projects/wp-plugins/spatie-ray)
 * Tag
 * [debug](https://id.wordpress.org/plugins/tags/debug/)[debugging](https://id.wordpress.org/plugins/tags/debugging/)
   [developer](https://id.wordpress.org/plugins/tags/developer/)[development](https://id.wordpress.org/plugins/tags/development/)
 *  [Tampilan lanjut](https://id.wordpress.org/plugins/spatie-ray/advanced/)

## Rating

 5 dari 5 bintang.

 *  [  10 5-star reviews     ](https://wordpress.org/support/plugin/spatie-ray/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/spatie-ray/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/spatie-ray/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/spatie-ray/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/spatie-ray/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/spatie-ray/reviews/#new-post)

[Lihat semua ulasan](https://wordpress.org/support/plugin/spatie-ray/reviews/)

## Kontributor

 *   [ freekmurze ](https://profiles.wordpress.org/freekmurze/)

## Bantuan

Ada yang ingin dikatakan? Butuh bantuan?

 [Lihat forum bantuan](https://wordpress.org/support/plugin/spatie-ray/)

## Donasi

Apakah Anda ingin mendukung pengembangan plugin ini?

 [ Donasi untuk plugin ini ](https://github.com/sponsors/spatie)