Browse Source

doc:增加文档:解决9003报错、git全局换行符配置

FelixYinMac 4 months ago
parent
commit
069778a6cf
3 changed files with 36 additions and 0 deletions
  1. 2 0
      .vscode/settings.json
  2. 29 0
      README.md
  3. 5 0
      settings.json

+ 2 - 0
.vscode/settings.json

@@ -69,6 +69,8 @@
     "workbench.iconTheme": "vscode-icons",
     "database-client.autoSync": true,
     "files.eol": "\n",
+    "files.insertFinalNewline": true,
+    "files.trimTrailingWhitespace": true,
     "notebook.lineNumbers": "on",
     "terminal.integrated.cwd": "${workspaceFolder}",
     "terminal.integrated.defaultProfile.linux": "zsh",

+ 29 - 0
README.md

@@ -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
+```

+ 5 - 0
settings.json

@@ -0,0 +1,5 @@
+{
+    "files.eol": "\n",
+    "files.insertFinalNewline": true,
+    "files.trimTrailingWhitespace": true
+}