Title: Ray
Author: freekmurze
Published: <strong>13. januara 2021</strong>
Last modified: 10. decembra 2025

---

Tykace pytaś

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

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

# Ray

 Wót [freekmurze](https://profiles.wordpress.org/freekmurze/)

[Ześěgnuś](https://downloads.wordpress.org/plugin/spatie-ray.1.7.10.zip)

 * [Drobnostki](https://dsb.wordpress.org/plugins/spatie-ray/#description)
 * [Pógódnośenja](https://dsb.wordpress.org/plugins/spatie-ray/#reviews)
 * [Wuwiśe](https://dsb.wordpress.org/plugins/spatie-ray/#developers)

 [Pódpěra](https://wordpress.org/support/plugin/spatie-ray/)

## Wopisanje

[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).

## FAQ

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.

## Reviews

![](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. nowembra 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. maja 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. měrca 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. oktobra 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. januara 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. januara 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 👌

 [ Read all 10 reviews ](https://wordpress.org/support/plugin/spatie-ray/reviews/)

## Sobustatkujuce a wuwijarje

„Ray“ jo software wótwórjonego žrědła. Slědujuce luźe su pśinosowali k toś tomu 
tykacoju.

Sobustatkujuce

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

“Ray” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/spatie-ray/contributors)
for their contributions.

[Translate “Ray” into your language.](https://translate.wordpress.org/projects/wp-plugins/spatie-ray)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/spatie-ray/), check
out the [SVN repository](https://plugins.svn.wordpress.org/spatie-ray/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/spatie-ray/) by 
[RSS](https://plugins.trac.wordpress.org/log/spatie-ray/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

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

## Meta

 *  Version **1.7.10**
 *  Last updated **4 mjasece**
 *  Active installations **500+**
 *  WordPress version ** 5.5 abo nowša **
 *  Tested up to **6.8.5**
 *  PHP version ** 8.0 abo nowša **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/spatie-ray/) a [Swedish](https://sv.wordpress.org/plugins/spatie-ray/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/spatie-ray)
 * Tags
 * [debug](https://dsb.wordpress.org/plugins/tags/debug/)[debugging](https://dsb.wordpress.org/plugins/tags/debugging/)
   [developer](https://dsb.wordpress.org/plugins/tags/developer/)[development](https://dsb.wordpress.org/plugins/tags/development/)
 *  [Rozšyrjony naglěd](https://dsb.wordpress.org/plugins/spatie-ray/advanced/)

## Pógódnośenja

 5 out of 5 stars.

 *  [  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)

[See all reviews](https://wordpress.org/support/plugin/spatie-ray/reviews/)

## Sobustatkujuce

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

## Pódpěra

Got something to say? Need help?

 [Forum pomocy pokazaś](https://wordpress.org/support/plugin/spatie-ray/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://github.com/sponsors/spatie)