douwo1517 2012-09-18 07:07
浏览 35
已采纳

Wamp Error Log Watcher?

Like many others I use WAMP on my local machine to test my PHP code and regularly use trigger_error to pin down issues with my scripts. This works really well but the one thing that is a constant irritant is the loquacity of the error_log file. Every PHP Notice is accompanied by a stack trace etc.

I have often toyed with the idea of writing an application of some description that would help me to zero in on the information I want rapidly and without eye strain (I generally keep the error_log file open in my browser and just refresh it to check the latest entries). However, that would be a digression from the real job and chances are that something of the nature already exists. I have Googled a fair bit to find a ready made solution but have not found one yet. Perhaps someone here might be able to point me in the right direction?

  • 写回答

1条回答 默认 最新

  • douxin0251 2012-09-18 07:23
    关注

    I think what you are looking for is the tail command in cmd.

    Simply run tail -f <path to *.log> and watch your cmd when you run your script.

    Now you don't have to refresh anymore.

    Or did I completely misunderstand your question? :)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题