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

相关推荐
_童年的回忆_3 小时前
【php】在linux下PHP安装amqp扩展
linux·开发语言·php
郑洁文3 小时前
基于Python的网络入侵检测系统
网络·python·php
zzqssliu4 小时前
taocarts 跨境独立站 SEO 优化实践(多语言 + 反向海淘场景)
java·javascript·php
夜月yeyue4 小时前
KCP 与 UDP 可靠传输
linux·网络·单片机·网络协议·udp·php
Kiling_07045 小时前
Java IO流:字节流实战与性能优化
java·开发语言·php
酉鬼女又兒6 小时前
零基础入门计算机网络:从基本概念到核心交换技术
开发语言·计算机网络·考研·职场和发展·php
tryqaaa_7 小时前
学习日志(五)【php反序列化全加例题】【pop链,字符逃逸,session,伪协议】
android·学习·php·web·pop·session
zgscwxd7 小时前
【Memurai】 Redis 缓存,引入 predis/predis 纯 PHP 库
php
BingoGo8 小时前
改变 PHP 未来的 RFC Polling API
后端·php
咕噜企业签名分发-淼淼8 小时前
浅谈云服务器在后端托管与签名分发场景中的应用价值
开发语言·php