PHP Xdebug configuration sample in php.ini

2023/04/28 4:53

Xdebug can greatly improve the efficiency of PHP testing and help you quickly locate the location of bugs. There are a lot of answers online that are outdated, and I configured them according to them, but in the end nothing worked. Finally, I found that the parameters of the latest version of Xdebug have changed slightly, you can refer to the following configuration.

 

zend_extension =xdebug
xdebug.log = “E:xampp01htdocscachexdebug.txt”
xdebug.mode = develop
xdebug.start_with_request=trigger
xdebug.output_dir = “E:xampp01htdocscache”
xdebug.use_compression = false
xdebug.output_name = “cachegrind.out.%t-%s”

xdebug.trace_format = 0
xdebug.collect_return=1
xdebug.collect_assignments=1
xdebug.append = 0
xdebug.log_level = 3
xdebug.trace_output_name = trace.%c

xdebug.remote_enable = 0
xdebug.remote_autostart = 0
xdebug.remote_handler = “dbgp”
xdebug.remote_host = “localhost”
xdebug.remote_port = 9000
xdebug.remote_log=”E:xampp01htdocscachexdebug.txt”
xdebug.remote_cookie_expire_time = 36000

xdebug.idekey=PHPSTORM

Leave a Reply

Back to top