Posts

Showing posts from August, 2021

วิธีการติดตั้ง PHP + Xdebug เพื่อให้สามารถ debug บน VSCode ได้

Image
         การเขียนโปรแกรมภาษา PHP นั้น developer จำเป็นจะต้องติดตั้ง PHP พร้อมกับ extension สำหรับ debug เอง เพื่อให้สามารถ debug โปรแกรมได้ ต่างจากภาษาอื่นๆ ที่มักจะ bundle มากับ IDE เลย แต่กับ PHP ถึงแม้จะเป็น IDE เจ้าใหญ่ ๆ ก็ยังไม่เห็นเจ้าไหน integrate มาให้พร้อมใช้เลย ติดตั้ง PHP install ผ่าน homebrew % brew install [email protected] กำหนด PHP Home % echo 'export PHP_HOME="/usr/local/opt/[email protected]/bin"' >> ~/.zshrc กำหนด PHP Home (สำหรับ macos Monterey ขึ้นไป ***) % echo 'export PHP_HOME="/opt/homebrew/Cellar/[email protected]/7.4.27/bin"' >> ~/.zshr set PATH ให้รู้จัก php  % echo 'export PATH="$PHP_HOME:$PATH"' >> ~/.zshrc % source ~/.zshrc ติดตั้ง Xdebug   install xdebug ด้วย pecl % pecl install xdebug ซึ่งคำสั่งด้านบนจะลง xdebug และ config กับ php ของเราให้เลย แต่เราจะแก้ไขมันนิดหน่อยที่ไฟล์ php.ini % nano /usr/local/etc/php/7.4/php.ini สำหรับ macos Monterey ขึ้นไป *** % nano /opt/homebrew/etc/p...

Facebook Comment

Recent Posts

Popular post of 7 days

Portal คืออะไรกันนะ???

[Java] ความแตกต่างระหว่าง Overloading กับ Overriding

Port Forwarding สำหรับคนใช้ AIS Fibre

Popular

Portal คืออะไรกันนะ???

[Java] ความแตกต่างระหว่าง Overloading กับ Overriding

มาตรฐานการตั้งชื่อตัวแปร (Naming Convention)

เรื่องของ ++i กับ i++

Port Forwarding สำหรับคนใช้ AIS Fibre

วิธีการสมัคร Apple Developer Program และ Enterprise Program ฉบับลงมือเอง

Android Auto & Apple Carplay คืออะไร ใช้งานยังไง

Deeplink, Universal Links คืออะไร ทำงานร่วมกับ Mobile App ได้ยังไง

ทดสอบ Mobile App แบบ Automated ด้วย Appium ทำยังไงกันนะ

พิมพ์ซองจากรายชื่อ excel ด้วยวิธี Mail Merge