FastAdmin phpStorm + phpStudy

2020-02-26  本文已影响0人  奈蜇

第一步

安装phpStudy,下一步下一步...

安装好后运行,把fastadmin的项目文件放到localhost的默认网站目录里,然后根目录选到public下。



选完确认就好了。

第二步

给php添加XDebug组件 看图就完事了

点完后会弹出记事本 拉到最后


[Xdebug]
zend_extension=C:/phpstudy_pro/Extensions/php/php7.2.9nts/ext/php_xdebug.dll
xdebug.trace_output_dir=C:/phpstudy_pro/Extensions/php_log/php7.2.9nts.xdebug.trace
xdebug.profiler_output_dir=C:/phpstudy_pro/Extensions/php_log/php7.2.9nts.xdebug.profiler
xdebug.profiler_append = 0
xdebug.profiler_enable=On
xdebug.profiler_enable_trigger = 0
xdebug.remote_enable=On
xdebug.remote_handler="dbgp"
xdebug.remote_mode = "req"
xdebug.remote_host=localhost
xdebug.remote_port=9002
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=Off

设置伪静态



点开,改

server {
        listen        80;
        server_name  localhost;
        root   "C:/phpstudy_pro/WWW/*******/public";#这里填你自己的
        location / {
            index index.html index.htm index.php;
            #autoindex  off;
            if (!-e $request_filename) {
                rewrite ^(.*)$ /index.php?s=/$1 last;
                break;
             }
        }
        location ~ \.php(.*)$ {
            fastcgi_pass   127.0.0.1:9001;
            fastcgi_index  index.php;
            fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  PATH_INFO  $fastcgi_path_info;
            fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
            include        fastcgi_params;
        }
}

这个是tp5的Nginx的伪静态设置

都设置完,phpstudy就好了重启服务就好了

第三步

安装浏览器插件。。。你自行百度 Xdebug helper


第四步

设置phpStorm


保存。。。ok
这类教程太多了,不过都是要你设置service。。。
什么?不懂 ok! 点下面这个链接
https://www.cnblogs.com/gaowei521/p/10761885.html
上一篇 下一篇

猜你喜欢

热点阅读