Replies: 3 comments 1 reply
-
|
The debug session is started by |
Beta Was this translation helpful? Give feedback.
-
|
To debug |
Beta Was this translation helpful? Give feedback.
-
|
Problem resolved. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am experiencing the ubiquitous "Netbeans won't connect to Xdebug" problem. I have extensively googled this problem and have not found a solution. I then did some local debugging and discovered that Netbeans is ignoring the port configured for debugging in its PHP configuration panel. I have attached three screen shots showing that this is true. The first shows the PHP configuration for netbeans. The second shows the partial configuration for Xdebug (3.2.2) that sets the port Xdebug listens on (I used xdebuginfo() for this information). The third shows a Wireshark capture that demonstrates that netbeans is using port 80 to attempt to start Xdebug, rather than port 9003, which is the configured value. I am using netbeans 18, but the problem also existed for netbeans 17 (I upgraded hoping netbeans 18 had a bug fix for the problem). My configuration is: Mac OS 13.4.1, Netbeans 18, Java: 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7, PHP 8.1.20, Xdebug 3.2.2.
I considered reporting this as a bug, but could not figure out a way to reproduce the bug on another machine. I can try to run debugging of netbeans on my machine, but am not sure if I can debug netbeans using netbeans. I also have Visual Studio installed on my machine, but have never used it to debug anything. So, if someone can help me to debug the problem on my machine I am willing to do that and report back my results.
Beta Was this translation helpful? Give feedback.
All reactions