需要手动指定 PC 机 IP 192.168.10.1; xdebug.remote_port默认端口号是 9000,这个在前面的 vscode 配置文件 launch.json 中有设置,与其对应即可。 重启web服务Nginx $ nginx -s reload 启动xdebug 调试 在vscode 中进入 debug 界面,点击开始调试按钮,PHPdebug 插件将在本机的 9000 端口监听来自 192.168.10.10 的...
zend_extension=xdebug.so xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.remote_host=10.0.2.2 7.重新启动PHP-FPM服务:$ sudo service php7.1-fpm restart 8.修改VsCode里,PHP下的launch.json文件,配置新的项(Listen for XDebug on Homestead)用于调试(加入路径的映射): 9.测试,给E:/Code下的一个...
exportXDEBUG_CONFIG="idekey=VSCODE" 修改.bashr或./zshrc文件 (首选) 这是设置终端环境变量的永久解决方案: 打开~/.bashrc或~/.zshrc。 在文件里插入如下代码:export XDEBUG_CONFIG="idekey=VSCODE"。 保存并关闭文件。 运行source ~/.bashrc或source ~/.zshrc进行更改。
zend_extension=xdebug.so xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.remote_host=10.0.2.2 7. 重启 PHP-FPM 服务 sudo service php7.1-fpm restart VSCode 配置 1. 安装 PHP Debug 插件 2. 打开 debug 面板 3. 单击 “config” 按钮 (齿轮) 然后选择 PHP 4. 修改默认的 launch.json 文...
Remote - WSL, extension ID:ms-vscode-remote.remote-wsl PHP Tools for VS Code, extension ID:devsense.phptools-vscode Open Ubuntu in WSL Now you have VSCode, WSL, and Ubuntu installed and ready. Connect the VSCode to the your Ubuntu container. PressF1to bring the command palette, and run...
安装VSCode 插件 在插件界面,搜索:phpcs,安装即可。 参考:https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs 配置插件 由于项目使用的是系统的 phpcs,所以需要在user setting中配置可执行路径和自己自定义的编写风格 这时候我们去看看我们的代码界面,是不是有了phpcs的提示了: ...
安装VSCode 插件 在插件界面,搜索:phpcs,安装即可。 参考:https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs 配置插件 由于项目使用的是系统的 phpcs,所以需要在 user setting 中配置可执行路径和自己自定义的编写风格 这时候我们去看看我们的代码界面,是不是有了 phpcs 的提示了: ![2018-05...
集成了插件管理功能在左侧的菜单栏,点击扩展按钮 > 输入 PHP Debug > 在搜索结果中找到 PHP debug > 点击安装,安装后重启 vscode 使其生效。打开调试界面。点击右上角的齿轮按钮配置 launch.json 文件,选择 PHP 选项。此时会生成 launch.json 文件,左侧的 debug 类型默认选中了 listen for xdebug ...
Extension version: v1.1.6 Extension's config: "[php]": { "editor.defaultFormatter": "open-southeners.laravel-pint" }, "editor.defaultFormatter": "open-southeners.laravel-pint", "laravel-pint.enable": true, Additional context I disabled the extension for 2 days I never had the issuekossa...
This extension providesLaravelroutes, views and ... autocomplete forVSCode. Please read thesecurity noteandhow to configurebefore using the extension. Autocomplete Route names and route parameters Views and variables Configs Translations and translation parameters ...