php內建的本地調試功能怎麼用?

來源:互聯網
上載者:User
這個簡單的調試功能好象是在5.4以後版本提供的,以前用過,現在忘了怎麼用了,有誰知道呢?


回複討論(解決方案)

你是指Xdebug嗎?

不是,是PHP內建的簡單HTTP功能

哦,你是指PHP內含的HTTPServer,這個沒用過。這應該說是預覽用的,應該不叫調試。。。。

哦,你是指PHP內含的HTTPServer,這個沒用過。這應該說是預覽用的,應該不叫調試。。。。


就是指這個HTTPServer

cd $PHP_INSTALL_PATH
./bin/php -S : -t
如:
前台運行:
./bin/php -S localhost:80 -t /data/www/
後台運行:
./bin/php -S localhost:80 -t /data/www/ >> /tmp/access.log 2>&1 &

cd $PHP_INSTALL_PATH
./bin/php -S : -t
如:
前台運行:
./bin/php -S localhost:80 -t /data/www/
後台運行:
./bin/php -S localhost:80 -t /data/www/ >> /tmp/access.log 2>&1 &


不錯,就是這個,非常感謝!
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.