I have a problem with Xdebug, like everything installed correctly, I put a breakpoint, but nothing happens, i.e. despite the breakpoint, the debugger doesn't stop.
My /etc/php/7.4/apache2/conf.d/20-xdebug.ini config
zend_extension=/usr/lib/php/20190902/xdebug.so
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.show_error_trace = 1
xdebug.remote_autostart = 0o
When I execute php -v
i got:
PHP 7.4.6 (cli) (built: May 14 2020 10:03:28) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.6, Copyright (c), by Zend Technologies
with Xdebug v2.9.5, Copyright (c) 2002-2020, by Derick Rethans
My PhpStorm settings:
I set breakpoint in PhpStorm:
I'm writing a REST API suing Symfony 4 and using Postman to send a request and would like to debug the code.
Any idea? How can I debug my REST API?