windows + phpstorm 2024 + phpstudy 8 + php7.3 + thinkphp6 配置xdebug调试

windows + phpstorm 2024 + phpstudy 8 + php7.3 + thinkphp6 配置xdebug调试

下载

在下面地址下载合适的xdebug 放到对应的php

https://xdebug.org/wizard

配置phpstudy

Php.ini配置

javascript 复制代码
[Xdebug]
zend_extension=php_xdebug.dll
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.client_port="9600"
xdebug.remote_handler=dbgp
xdebug.remote_timeout = 3000
xdebug.start_with_request=yes
xdebug.show_local_vars = 1
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=Off
xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.trace
xdebug.profiler_enable=Off
xdebug.profiler_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.profiler
xdebug.remote_enable=Off
xdebug.remote_host=localhost
xdebug.remote_port=9000

phpstorm配置






xdebug运行一会就停了配置

虚拟机 0localhost_90.conf 配置

添加两行

复制代码
  FcgidIOTimeout 3000
  FcgidConnectTimeout 3000

<VirtualHost _default_:90>
    DocumentRoot "E:/work/code/mf_ydh/public"
    FcgidInitialEnv PHPRC "D:/phpstudy_pro/Extensions/php/php7.3.4nts"
    AddHandler fcgid-script .php
    FcgidWrapper "D:/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php
  <Directory "E:/work/code/mf_ydh/public">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
	  DirectoryIndex index.php index.html error/index.html
  </Directory>
  FcgidIOTimeout 3000
  FcgidConnectTimeout 3000
  ErrorDocument 400 /error/400.html
  ErrorDocument 403 /error/403.html
  ErrorDocument 404 /error/404.html
  ErrorDocument 500 /error/500.html
  ErrorDocument 501 /error/501.html
  ErrorDocument 502 /error/502.html
  ErrorDocument 503 /error/503.html
  ErrorDocument 504 /error/504.html
  ErrorDocument 505 /error/505.html
  ErrorDocument 506 /error/506.html
  ErrorDocument 507 /error/507.html
  ErrorDocument 510 /error/510.html
</VirtualHost>

php.ini配置

memory_limit=1024M

max_execution_time=3000

相关推荐
菜鸟康4 分钟前
手写Muduo网络库核心代码2--Poller、EPollPoller详细讲解
开发语言·网络·php
2202_7567496943 分钟前
YOLO 目标检测:YOLOv5网络结构、Focus、CSP、自适应Anchor、激活函数SiLU、SPPF、C3
人工智能·yolo·目标检测·php
weitao_112 小时前
php + docker + idea debug
docker·php
蚊子爱喝水5 小时前
高性能多线程 PHP 图像处理库 PHP-VIPS:颠覆你对图像处理的认知
开发语言·图像处理·php
jingfeng5147 小时前
网络编程 socket——TCP
网络·tcp/ip·php
wheeldown8 小时前
从电脑底层到进程创建:一篇看懂冯诺依曼、OS和进程
linux·服务器·php
长城202417 小时前
关于命名参数占位符的分析(主要以PHP为例)
sql·php·占位符·命名参数占位符·bindparam
Xasxxs18 小时前
【网络安全】WAF Bypass——长亭雷池、安全狗下的SQL绕过
数据库·sql·安全·web安全·网络安全·php
茫忙然18 小时前
【WEB】[BUUCTF] <GXYCTF2019禁止套娃>《php函数的运用》
php·web·rce
Reicher1 天前
计算机网络总览
网络·计算机网络·php