簡體   English   中英

Apache NetBeans 12.3 and XAMPP 3.2.4 PHP Breakpoints Windows 10

[英]Apache NetBeans 12.3 and XAMPP 3.2.4 PHP Breakpoints Windows 10

I spent a few days configuring the Apache NetBeans 12.3 and XAMPP 3.2.4 and PHP and I am not able to make it functional in way, that I will be able to debug the code with a breakpoints working.

  1. 我安裝了第一個新的 xampp 確保這是全新的安裝。
  2. 需要重啟電腦,所以我這樣做了。
  3. 已安裝 ApacheNetbeans 12.3 IDE
  4. 檢查了 PHP.ini - 第一個奇怪點。 沒有 [Xdebug] 在這里說明。
  5. I created new project in netbeans put phpinfo() inside run the page, page showed, copied the content, put it to setup wizard downloaded the dll, put dll to the certain place where they stated opened the php.ini...

5.1 在 php.ini 中沒有說明 Xdebug,所以在文件末尾我添加了 [XDebug] 並說明了部分代碼。

5.2 I set up the port to 9000 (also 9001 in another attempt) and saved the php.ini with new values in. 6. Stopped the Apache, Stopped the mysql, turned off the Xampp, run xampp under admin rights, started the apache ,並啟動 mysql 7. NetBeans - 打開項目,刪除 phpinfo();

7.1 添加以下行:echo("Test"); $x = 1; echo("測試后");

7.2 在 $x=1 上添加斷點; 在調試模式下運行。

沒有捕獲斷點。 在 netbeans 中仍然有一條消息說:“等待連接......”

我不確定這里出了什么問題,但我檢查了許多其他主題(它們比這個更老)並且沒有解決方案有效。 還是 Apache netbeans 和 Xampp 上的 Z0F4137ED1502B5045DZ6010CA2 兼容嗎? 我知道幾年前我能夠運行和使用它,當時它不是 Apache NetBeans 而只是 netbeans 並且我沒有遇到這個問題。 只安裝了 Xampp 和 Netbeans,不需要其他特殊配置。

我關閉了防火牆,檢查了 php.ini 中是否沒有 zend 標簽,檢查它是否安裝了它顯示它,它是好的(顯示版本),將端口更改為 9001 或其他線程中建議的不同,測試幾個不同的命令,例如 xdebug.enable_remote = on,而不是 1,反之亦然...在我單擊 netbeans 幫助后,在我停止調試后出現的鏈接轉到未找到頁面...

我用谷歌搜索了 netbeans 的 wiki 頁面並繼續執行這些步驟......有人在全新安裝時遇到同樣的問題嗎? 解決方案是什么或我做錯了什么? 非常感謝。

編輯 17.5.2021。 沒有安裝防病毒軟件,並且 windows 防火牆和防御者已關閉。 本地主機可以加載頁面,但沒有可用的斷點。

編輯:添加我的日志:

Xdebug installed: 3.0.4
Server API: Apache 2.0 Handler
Windows: yes
Compiler: MS VC15
Architecture: x64
Zend Server: no
PHP Version: 7.4.10
Zend API nr: 320190902
PHP API nr: 20190902
Debug Build: no
Thread Safe Build: yes
OPcache Loaded: no
Configuration File Path: no value
Configuration File: C:\xampp\php\php.ini
Extensions directory: C:\xampp\php\ext

NetBeans 12.3 and XAMPP 3.2.4 are compatible with win10.but if you pre installed antivirus software like avast or kaspaskey they will detect xampp as a malicious software.so before you run xampp turn off the antivirus software and try again.

首先右鍵單擊我的電腦圖標並選擇管理,然后選擇 go 到服務和應用程序

select 服務

將 windows 防御者啟動類型設置為手動而不是自動並重新啟動計算機。然后從安裝 xampp 重試。 你應該嘗試從 xampp 安裝

如果它不起作用,請安裝 xampp 舊版本,然后重試。 有時 windows 防御者將其檢測為惡意軟件。 所以關掉它再試一次。 與 netbeans ide 無關。

如果您每次安裝 zend 服務器或其他 WAMP 軟件時遇到 xampp 問題並繼續工作

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM