简体   繁体   中英

How to configure xdebug in PhpStorm?

I read several tutorials in the internet but without success. I configured xdebug in my php.ini file like this:

zend_extension=/usr/lib/php/20131226/xdebug.so
xdebug.remote_enable=true
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/tmp

在此处输入图片说明

I have following PhpStorm settings:

在此处输入图片说明

I put following breakpoint but it won't work if I reload page

在此处输入图片说明

You have to add a listener to PhpStorm

在此处输入图片说明 在此处输入图片说明 在此处输入图片说明

And then you will have a debug tab on the bottom

在此处输入图片说明 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM