首頁  >  文章  >  後端開發  >  如何解決 NetBeans 中的「等待連線 (netbeans-xdebug)」錯誤

如何解決 NetBeans 中的「等待連線 (netbeans-xdebug)」錯誤

Susan Sarandon
Susan Sarandon原創
2024-10-24 07:44:30673瀏覽

How to Resolve the

NetBeans 顯示"等待連線(netbeans-xdebug)"

概述

概述

概述
  • 概述
  • 概述

概述

環境資訊

[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9-nts.dll"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host=192.168.1.5
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
XAMPP 1.8.2

PHP: 5.4.16

PHP: 5.4.16

    Net. 🎜>
  1. Apache: 2.4.4 (Win32)
  2. 設定
修改php.ini 檔案

修改php.ini 檔案

🎜>確保php.ini 檔案包含以下配置:

NetBeans 配置

在NetBeans IDE 中:在NetBeans IDE 中: "選項" > "PHP" > "偵錯"。 將 "偵錯器連接埠" 設定為 9000。 將 "會話 ID" 設為 "netbeans-xdebug"。 確保 xdebug.remote_host 設定為電腦的 IP 位址(在這種情況下為 192.168.1.5)。 重新啟動 Apache儲存 php.ini 並重新啟動 Apache 伺服器。 結果遵循這些步驟後,您應該能夠在 NetBeans 中調試項目,而不出現 "等待連接 (netbeans-xdebug)" 錯誤訊息。

以上是如何解決 NetBeans 中的「等待連線 (netbeans-xdebug)」錯誤的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn