Brandon McWhirter created NETBEANS-3210:
-------------------------------------------
Summary: Xdebug connects, NetBeans does not respond
Key: NETBEANS-3210
URL: https://issues.apache.org/jira/browse/NETBEANS-3210
Project: NetBeans
Issue Type: Bug
Components: php - Debugger
Affects Versions: 11.1, 11.0
Environment: Windows 10 1903, Apache 2.4.41 (Win64), PHP 7.3.9, Xdebug
2.7.0RC2, NetBeans 11.1, Java JRE 8u221
Reporter: Brandon McWhirter
Attachments: 2019-10-06 19_59_03-Window.png, 2019-10-06
19_59_20-Window.png, 2019-10-06 19_59_30-Window.png
When trying to debug a PHP application with Xdebug, NetBeans status shows
"Waiting For Connection (netbeans-xdebug)..." while the Xdebug remote log
states it is connected. The log also states it sends the <init /> string to
NetBeans but never receives a response.
I am using a local XAMPP server.
This works successfully (without changing anything) with VSCode so this seems
to be an issue with NetBeans not understanding/liking the <init /> string that
is sent so it never responds.
I have tried:
* Changing debugger port from 9000 in the three areas (php.ini, NetBeans
Options/PHP/Debugger, Project Properties/Run Config/Advanced)
* Disabling Windows Firewall
* Reinstalling NetBeans
* Tried with NetBeans 11.0
* Listening on IP instead of localhost or 127.0.0.1
Xdebug remote log:
{code:none}
[1924] Log opened at 2019-10-06 23:47:53
[1924] I: Checking remote connect back address.
[1924] I: Checking header 'HTTP_X_FORWARDED_FOR'.
[1924] I: Checking header 'REMOTE_ADDR'.
[1924] I: Remote address found, connecting to 192.168.0.222:9000.
[1924] I: Connected to client. :-)
[1924] -> <init xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="https://xdebug.org/dbgp/xdebug"
fileuri="file:///E:/Programming/PHP/vintage-lib/webroot/index.php"
language="PHP" xdebug:language_version="7.3.3-dev" protocol_version="1.0"
appid="1924" idekey="netbeans-xdebug"><engine
version="2.7.0RC2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright
(c) 2002-2019 by Derick Rethans]]></copyright></init>
[1924]{code}
php.ini:
{code:none}
zend_extension = "c:/xampp/php/ext/php_xdebug.dll"
xdebug.idekey = netbeans-xdebug
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "c:/xampp/tmp/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.remote_mode = req
xdebug.remote_log = "c:/xampp/tmp/xdebug/xdebug_remote.log"
xdebug.show_local_vars = 9
xdebug.trace_output_dir = "c:/xampp/tmp"{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists