ต่อจาก blog บอกวิธี Debug ด้วย xDebug
อีกหนึ่งความสามารถ ก็คือการทำ “Profiling”หรือการตรวจสอบระยะเวลาการทำงานของ Application ในแต่ละส่วน
ไปสัมภาษณ์งานมา 2 ที่, ถามถึง Design Patterns 2 ที่, ตอบไม่ได้ทั้งสองที่! (ไม่รู้แม้กระทั่งว่ามันคืออะไร!)
เลยคิดว่า ควรค่าแก่การศึกษาแล้ว เลยขวานหาหนังสืออ่าน ไปเจอเล่ม “PHP Design Patterns” ของ O’ Reilly มา อ่านยากมากกกก ใครอ่านไม่เข้าใจ ไม่ต้องแปลกใจ…
หนึ่งในข้อดีของการ Develop Java Application ก็คือ มัน Debug ง่ายมากสามารถตั้ง Breakpoint, ดูค่าตัวแปร, Check ผลลัพธ์ของ Condition ต่างๆ
สำหรับ PHP ก็มีวิธี Workaround ต่างๆ กันออกไป ไม่ว่าจะ die(var_dump($VAR));ใส่ Watchdog…