Diagnostic System
ปวดหัว ปวดหัว ปวดหัว.... เมื่อระบบโตขึ้น ก็มักมีความยุ่งยากเกิดขึ้น
ไม่ว่าจะเป็นเรื่องบำรุงรักษา source code การตรวจสอบข้อผิดพลาดในระบบ(bug) การติดตามการทำงาน (process) ของระบบ และอื่นๆ อีกจิปาถะ
ในระหว่างการพัฒนาระบบนั้น สิ่งที่หนีไม่พ้นคือ การตรวจสอบว่าระบบทำงานได้ถูกต้องตามที่ต้องการหรือไม่ ยกตัวอย่างกระบวนการทำงานของ process หนึ่ง มีการติดต่อระหว่างระบบย่อย 3 ระบบ มีการส่งข้อมูลพูดคุยไปมาระหว่างกัน(XML) ... ถ้าหากมีจุดใดจุดหนึ่งผิดพลาด การตรวจสอบเป็นสิ่งที่ค่อนข้างยุ่งยาก และน่าเบื่อ
ก็เลยมามองหา script library, classes สำหรับช่วยในการตรวจสอบ หวังว่าจะไม่ต้องเขียนเอง
PHP Debugger Scripts
Advanced PHP debugger
QUOTEAPD is the Advanced PHP Debugger. It was written to provide profiling and debugging capabilities for PHP code, as well as to provide the ability to print out a full stack backtrace. APD supports interactive debugging, but by default it writes data to trace files. It also offers event based logging so that varying levels of information (including function calls, arguments passed, timings, etc.) can be turned on or off for individual scripts.
QUOTEThe basic purpose of PHP_Debug is to provide assistance in debugging PHP code, by "debug" i don't mean "step by step debug" but program trace, variables display, process time, included files, queries executed... These informations are gathered through the script execution and therefore are displayed at the end of the script so that it can be read and used at any moment. (during the development phase or using a special account in production)
QUOTEThis package is meant to trace the execution steps of PHP scripts to assist in their eventual debugging.
The class can keep track of messages associated with different types of script activity so it can later generate a report that can be outputted for instance at the end of each script pages.
PHP Debugger and Helper
A Custom Error Handling And Debugging Class
PHP Dump
logdigester
QUOTEIt is highly recommended that you log your errors to a file instead of displaying them in the browser. As this log file grows, it can become difficult to find and react to errors. This script will read and analyze your php error log and spit out a more readable version with the worst errors highlighted so you can fix those first.
QUOTEIt's a tool for displaying structured information about a variable in a colored tabular format.
จริงๆ ก็คือพวก debugger นี่เอง แต่ผมน่าจะประยุกต์ เอามาเชื่อมกับระบบ AI sytem, knowledge base เพื่อตรวจสอบสิ่งผิดปกติ, error แปลกๆ หรือพฤติกรรมการใช้งานแปลกๆ ได้ในอนาคต...
ไม่มีความเห็น