1

I'm developing a Laravel 8.6 application using PHP 8.1 with Xdebug extension but I can't get the PhpStorm's debugging tool to work.

Here's my debug configuration. Notice that I'm using a virtual host

enter image description here

PhpStorm's is listening for PHP debug connections and I set a breakpoint to an endpoint but when I make the http request via Postman nothing happens. What am I doing wrong?

php.ini

zend_extension=C:\xampp\php\ext\php_xdebug.dll
xdebug.mode=debug
xdebug.remote_enable = 1
xdebug.remote_host = "api-fitplanner.localhost"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_port=9003
1
  • Can you show your XDEBUG Settings from php.ini Commented Feb 25, 2022 at 10:44

1 Answer 1

2

You are using Xdebug 2 settings, but you are running Xdebug 3.1.3. Please refer to the upgrade guide on how to convert these.

From what you wrote above, it should be:

zend_extension=C:\xampp\php\ext\php_xdebug.dll
xdebug.mode=develop,debug
xdebug.client_host="api-fitplanner.localhost"
xdebug.start_with_request=yes

Sign up to request clarification or add additional context in comments.

3 Comments

As I suspected :)
do you know if it's possible to configure the debugger to only show variable values and its relationship values? currently it shows me bunch of other values which I'm not really interested and it's hard to keep track of the variable. i.postimg.cc/DZcGszkp/Screenshot-2022-02-25-131815.png
I don't know @shAkur whether PhpStorm allows you to filter our certain properties. Xdebug itself does not. But I don't know which ones you're interested in, and which ones not.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.