2018年1月3日星期三

phpstorm using xdebug 2017.3 on windows

totally speaking ,it's easy.
let's get started.
1st.you need to get xdebug extension.Im using phpstudy,so there's no need to download it.
2nd.you need to config it.open the corresponding php.ini config file,then write down the config below:
[XDebug]
xdebug.profiler_output_dir="C:\phpStudy\PHPTutorial\tmp\xdebug"
xdebug.trace_output_dir="C:\phpStudy\PHPTutorial\tmp\xdebug"
zend_extension = "C:\phpStudy\PHPTutorial\php\php-5.6.27-nts\ext\php_xdebug.dll"
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= 127.0.0.1
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
PS:it's useless of the org's config of phpstudy about xdebug,so just paste it and then change to what you like.
3rd.you need to config in phpstorm.since you config the xdebug in its own,so just emit the same config in phpstorm .All you need to do in phpstorm is as follows:
1).Ctrl+Alt+S:Language and Framework->PHP:PHP Language level:your level(mine is 5.6);CLI interpreter:5.6.xxx;(you can only set php executable).
2).set the server.your server ip port.debugger set to xdebug.
Done!!!Enjoy yourself!

没有评论:

发表评论