|
@@ -55,3 +55,32 @@ php artisan ide-helper:generate
|
|
|
php artisan ide-helper:models -N
|
|
|
php artisan ide-helper:meta
|
|
|
```
|
|
|
+
|
|
|
+## git 提交统一配置换行符为 LF 方案
|
|
|
+
|
|
|
+```bash
|
|
|
+# 设置全局换行符为 LF
|
|
|
+git config --global core.eol lf
|
|
|
+git config --global core.autocrlf input
|
|
|
+git config --global core.safecrlf warn
|
|
|
+```
|
|
|
+
|
|
|
+## 解决命令行中总是报错 9003xdebug 调试端口连接失败问题
|
|
|
+
|
|
|
+```bash
|
|
|
+[Xdebug]
|
|
|
+zend_extension=xdebug
|
|
|
+
|
|
|
+; 仅启用需要的功能,减少性能开销
|
|
|
+xdebug.mode=debug
|
|
|
+
|
|
|
+; 仅在需要时启动调试
|
|
|
+xdebug.start_with_request=trigger
|
|
|
+
|
|
|
+; 保持默认端口配置
|
|
|
+xdebug.client_port=9003
|
|
|
+xdebug.client_host=127.0.0.1
|
|
|
+
|
|
|
+; 添加日志便于排查问题
|
|
|
+xdebug.log=/tmp/xdebug.log
|
|
|
+```
|