【发布时间】:2016-02-16 09:55:33
【问题描述】:
我对此进行了很多研究,但似乎找不到答案。我想知道您是否可以实时查看 XAMPP 上的 PHP 错误日志,就像我使用 web 服务器使用 tail -f 命令一样。我知道命令会不一样,但我想知道它是否可能,如果可能,如何?
【问题讨论】:
我对此进行了很多研究,但似乎找不到答案。我想知道您是否可以实时查看 XAMPP 上的 PHP 错误日志,就像我使用 web 服务器使用 tail -f 命令一样。我知道命令会不一样,但我想知道它是否可能,如果可能,如何?
【问题讨论】:
您可以在 IDE 中执行此操作,也可以使用 Xdebug helper addon 进行浏览器。例如,laravel 框架在调试模式下内置了调试器,您可以从框架本身获得分屏,底部的所有调试信息都来自框架本身。附:你仍然可以使用tail -f,只需安装http://www.mingw.org/它的Windows shell。或 PowerShell 中的 Get-Content [pathtologfile]:
参数集:路径 获取内容 [-Path] [-Credential ] [-Delimiter ] [-Encoding {Unknown |字符串 |统一码 |字节 | BigEndianUnicode | UTF8 | UTF7 | UTF32 | ASCII |默认 |代工 | BigEndianUTF32} ] [-Exclude ] [-Filter ] [-Force] [-Include ] [-InformationAction {SilentlyContinue |停止 |继续 |查询 |忽略 | Suspend} ] [-InformationVariable ] [-Raw] [-ReadCount ] [-Stream ] [-Tail ] [-TotalCount ] [-Wait] [-UseTransaction] [ ]
参数集:LiteralPath 获取内容 -LiteralPath [-Credential ] [-Delimiter ] [-Encoding {Unknown |字符串 |统一码 |字节 | BigEndianUnicode | UTF8 | UTF7 | UTF32 | ASCII |默认 |代工 | BigEndianUTF32} ] [-Exclude ] [-Filter ] [-Force] [-Include ] [-InformationAction {SilentlyContinue |停止 |继续 |查询 |忽略 | Suspend} ] [-InformationVariable ] [-Raw] [-ReadCount ] [-Stream ] [-Tail ] [-TotalCount ] [-Wait] [-UseTransaction] [ ]
【讨论】: