首页 > 编程语言 >wsl phpstrom xdebug 调试环境配置

wsl phpstrom xdebug 调试环境配置

时间:2023-06-26 11:24:52浏览次数:58  
标签:3600s 配置 wsl phpstrom xdebug timeout 调试

系统环境:

wsl2 安装 php + nginx 并配置虚拟主机 loc.laravel.com 对应项目为 /www/loc.larave.com 目录

phpstrom 打开 wsl 内部的项目目录,地址为:\\wsl$\Ubuntu\www\loc.laravel.com

windws 宿主机 ip 为 192.168.2.212 注意关闭 windws 防火墙,保证 wsl 能 ping通 windows 宿主机

调试大概流程就是,浏览器访问网站服务器,服务器再去连接 IDE,IDE 和 服务器要能互相通信。 

xdebug 配置

[xdebug]
zend_extension=xdebug.so
xdebug.mode=debug
xdebug.client_host=192.168.2.212 ; IDE 所在 windows 系统 IP
xdebug.idekey=PHPSTORM

下面配置为了防止调试过程中超时,可暂时先不配置。

fpm 的 PHP ini 配置
max_execution_time=3600
max_input_time=3600
default_socket_timeout = 3600

Nginx 配置 http 段
client_body_timeout 3600s;
client_header_timeout 3600s;
keepalive_timeout 3600s;
send_timeout 3600s;
proxy_connect_timeout 3600s;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;

 

项目运行配置

 

 

标签:3600s,配置,wsl,phpstrom,xdebug,timeout,调试
From: https://www.cnblogs.com/zbseoag/p/17505076.html

相关文章

  • 使用XDebug进行PHP调试
    步骤1、获取Xdebug,下载地址,根据你的操作系统情况,选择合适的下载:http://xdebug.org/download.php 假设下载后的文件为:php_xdebug.dll 2、加载PHP的这个插件以WAMPSERVER为例,我是把它装在D:\wamp\目录下,我就需要把php_xdebug.dll文件拷贝到D:\wamp\bin\php\php5.3.0\ext......
  • window wsl 无法访问flink webui
    https://blog.csdn.net/weixin_38988171/article/details/126012785修改flink配置文件rest.bind-address:localhost为rest.bind-address:0.0.0.0......
  • wsl中启动emacs GUI
    wsl中启动emacsGUIwsl中启动emacsGUITableofContents1.linux配置1.1.wsl1.2.wsl22.X11Server2.1.debian/ubuntu3.中文字体4.输入法5.参考Windows中使用Emacs因为公司安全软件的原因,会启动很慢(正常启动1.5秒,会需要2分钟以上,差别太......
  • wsl 安装的Ubuntu 和windows 里面的文件如何共享
    原文:oucanalsoaccessyourlocalmachine’sfilesystemfromwithintheLinuxBashshell–you’llfindyourlocaldrivesmountedunderthe /mnt folder.Forexample,your C: driveismountedunder /mnt/c:意思就是直接在Ubuntu里面cd到/mnt/c就可以了......
  • wsl编译android13源码并刷入pixel6
    wsl编译环境环境依赖参考编译android10时设置的环境https://www.cnblogs.com/revercc/p/16826591.html,这里注意wsl使用的ext4文件系统,此文件系统区分大小写,而windows由于历史原因使用的是NTFS文件系统,此文件系统默认是不区分大小写的。所以在wsl的共享目录中需要开启区分大小写......
  • mac 下利用 xdebug生成性能报告
    1、安装xdebug[xdebug]zend_extension=xdebug.soxdebug.remote_enable=1xdebug.remote_handler=dbgpxdebug.remote_mode=reqxdebug.remote_connect_back=0xdebug.remote_host=0.0.0.0xdebug.remote_port=9001xdebug.idekey=PHPSTORMxdebug.remote_autostart=0xdebug.p......
  • WSL 2中安装VectorCAST
    “转载自维克多汽车技术(上海)有限公司,作者VectorChina”如需在Windows平台上搭建Linux开发和测试环境,常用的方法是使用VMware公司的虚拟化产品如VMwareWorkstation,或VMwarevSphere创建Linux虚拟机。为了精简传统虚拟机或双启动设置的开销,微软在Windows10平台中引入WSL1兼容层......
  • WSL: ssh localhost Permission denied (publickey)
    Ifyou'rerunningUbuntuonWindowsSubsystemforLinux,therewillnotbeapreinstalledpublickeyorauthorizedkeyslist,soyou'llneedtogenerateyourown.Ifyoudon'talreadyhaveopenssh-serverinstalled:sudoapt-getupgradesud......
  • WSL 配置代理
    在一个局域网下如果有一台机器配置好了代理,那么这个代理是可以共享给这个局域网下的其他设备的前置:防火墙关闭.zshrc/.bashrc里面配置exporthostip=$(cat/etc/resolv.conf|grep-oP'(?<=nameserver\).*')aliasvpn='exportall_proxy="socks5://${hostip}:7890";'#......
  • mac M2 装PHP xdebug
    目前xdebug你不支持arm只能自编译pecel安装是arm64arch-arm64sudopeclinstallxdebug编译下载https://xdebug.org/download编译gitclonehttps://github.com/xdebug/xdebug.gitcdxdebugphpize./configure--enable-xdebug--host=arm-linux-gnueabimak......