phpStrom配置断点调试

软件:phpStrom,phpStudy

phpStrom激活码

https://blog.csdn.net/q258523454/article/details/79775092

配置步骤:

1.打开phpStudy,为防止软件之间的额冲突,可将phpStudy的版本切换为“php-5.4.45-nts +  Nginx”

2.在phpStudy中,“其他选项菜单”-->"打开配置文件"-->"php-ini",在配置文件中找到“[xDebug]...”这部分代码,在其后面添加如下代码:(注意根据情况修改路径)

        xdebug.profiler_append = 0

	xdebug.profiler_enable = 1

	xdebug.profiler_enable_trigger = 0

	xdebug.profiler_output_dir ="E:\software\phpstudy\tmp\xdebug"

	xdebug.trace_output_dir ="E:\software\phpstudy\tmp\xdebug"

	xdebug.profiler_output_name = "cache.out.%t-%s"

	xdebug.remote_enable = 1

	xdebug.remote_handler = "dbgp"

	xdebug.remote_host = "127.0.0.1" 

	zend_extension="E:\software\phpStudy\php\php-5.4.45\ext\php_xdebug.dll"

	xdebug.remote_autostart = 1

	xdebug.remote_port = 9100

	xdebug.idekey = PHPSTORM

3.为查看xDebug是否配置成功,在“其他选项菜单”-->"查看phpinfo",在打开的页面中按“Ctrl+F”进行查找,输入“xdebug”,若出现有关信息,则表明xdebug配置成功。

4.打开phpStrom,进行一些必要的配置:

(1) FIle-->setting-->Editor-->勾选“Change font size with...”

(2) File-->setting-->Editor-->Font-->可修改字体大小

扫描二维码关注公众号,回复: 3320382 查看本文章

(3)Editor-->General-->Apperance

5.FIle-->Setting-->Language...-->PHP-->port进行端口配置

6. php-->debug-->DBGp Proxy

7.php-->xDebug-->Servers -->点右侧左上角的“+”

8.点“Add Configuration ”-->PHP WEb Page-->Server选择之前起的名字

配置好后,点“Apply”应用

9.点击phpStrom右上角的电话图标按钮,

------>

10. 在phpStudy中-->"其他选项菜单"--> "打开配置文件"-->"nginx--conf"

phpStron配置: https://blog.csdn.net/wzj0808/article/details/55223095

猜你喜欢

转载自blog.csdn.net/Lyj1010/article/details/82756395