浅谈php+phpStorm+xdebug配置方法
本文给大家浅谈php+phpStorm+xdebug配置方法,需要的朋友可以参考下
1.下载xdebug文件
将phpinfo()的源代码复制到文本框中,xdebug会提示如何配置和下载哪个版本的xdebug。
全部下载地址:
2.配置php.ini,在末尾加上。
zend_extension="php_xdebug-2.3.3-5.6-vc11.dll" xdebug.remote_enable = On xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" xdebug.remote_port = 9000 xdebug.idekey = PHPSTROM
3.chrome的xdebug配置
在IDE key里将其配置成“phpStorm”
项目地址:https://github.com/mac-cain13/xdebug-helper-for-chrome
4.phpStorm的相关配置
打开phpStorm,
-进入File>Settings>PHP>Servers,这里要填写服务器端的相关信息,name填localhost,host填localhost,port填80,debugger
选XDebug
-进入File>Settings>PHP>Debug,看到XDebug选项卡,port填9000,,其他默认
-进入File>Settings>PHP>Debug>DBGp Proxy,IDE key 填 phpStorm,host 填localhost,port 填80
-点OK退出设置。
5.其他配置:
在phpStorm里打开监听(电话按钮)。
对apache进行重启,如使用命令行:net stop apache24 & net start apache24;
查看xdebug是否正确配置:进入到php.exe目录:执行php.exe -m可以查看相关模块。
相关文件下载地址:
以上内容就是本文给大家介绍的php+phpStorm+xdebug配置方法,希望大家喜欢。

Alat AI Hot

Undresser.AI Undress
Apl berkuasa AI untuk mencipta foto bogel yang realistik

AI Clothes Remover
Alat AI dalam talian untuk mengeluarkan pakaian daripada foto.

Undress AI Tool
Gambar buka pakaian secara percuma

Clothoff.io
Penyingkiran pakaian AI

AI Hentai Generator
Menjana ai hentai secara percuma.

Artikel Panas

Alat panas

Notepad++7.3.1
Editor kod yang mudah digunakan dan percuma

SublimeText3 versi Cina
Versi Cina, sangat mudah digunakan

Hantar Studio 13.0.1
Persekitaran pembangunan bersepadu PHP yang berkuasa

Dreamweaver CS6
Alat pembangunan web visual

SublimeText3 versi Mac
Perisian penyuntingan kod peringkat Tuhan (SublimeText3)

Topik panas

