XDEBUG not working anymore, XDEBUG Log says connected
Hi,
since one of the latest PHPStorm updates, debugging with XDEBUG seems to be not working anymore.
XDEBUG Version: 2.2.5
PHP Version: 5.6.40-0+deb8u12
PhpStorm: 2020.3 Build #PS-203.5981.175
JDK: 11.0.9; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
OS: Mac OS X
XDEBUG Log:
Log opened at 2020-12-14 16:25:02
I: Connecting to configured address/port: 192.168.4.119:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///application/info.php" language="PHP" protocol_version="1.0" appid="11" idekey="PHPSTORM"><engine version="2.2.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2014 by Derick Rethans]]></copyright></init>
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>
Log closed at 2020-12-14 16:25:02
Log opened at 2020-12-14 16:25:19
I: Connecting to configured address/port: 192.168.4.119:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///application/index.php" language="PHP" protocol_version="1.0" appid="12" idekey="PHPSTORM"><engine version="2.2.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2014 by Derick Rethans]]></copyright></init>
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>
Log closed at 2020-12-14 16:25:22
PHPStorm Log:
2020-12-14 17:25:02,066 [1339092] DEBUG - il.connection.ServerConnection - Incoming connection on port 9000 from 192.168.4.119
2020-12-14 17:25:02,067 [1339093] DEBUG - il.connection.ServerConnection - ----socket closed
2020-12-14 17:25:02,067 [1339093] ERROR - plication.impl.ApplicationImpl - null
java.lang.NullPointerException
at org.jdom.AttributeList.indexOf(AttributeList.java:430)
at org.jdom.AttributeList.get(AttributeList.java:404)
at org.jdom.Element.getAttributeValue(Element.java:1221)
at org.jdom.Element.getAttributeValue(Element.java:1202)
at org.jdom.Element.getAttributeValue(Element.java:1166)
at com.jetbrains.php.debug.xdebug.dbgp.messages.InitNotification.deserialize(InitNotification.java:50)
at com.jetbrains.php.debug.xdebug.dbgp.DbgpUtil.parsePacket(DbgpUtil.java:273)
at com.jetbrains.php.debug.xdebug.dbgp.DbgpUtil.readMessage(DbgpUtil.java:302)
at com.jetbrains.php.debug.xdebug.connection.XdebugConnection$MyInputReader.read(XdebugConnection.java:149)
at com.jetbrains.php.debug.xdebug.connection.XdebugConnection$MyInputReader.read(XdebugConnection.java:138)
at com.jetbrains.php.debug.xdebug.connection.XdebugConnection.init(XdebugConnection.java:49)
at com.jetbrains.php.debug.connection.PhpDebugServer.handle(PhpDebugServer.java:55)
at com.jetbrains.php.debug.connection.PhpDebugServer.handle(PhpDebugServer.java:38)
at com.jetbrains.php.util.connection.ServerConnection.lambda$startListening$0(ServerConnection.java:63)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:270)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
Anybody an idea how to fix this?
If any other informations needed, let me know :)
Best regards,
Chris
Please sign in to leave a comment.
Hi there,
Thank you for providing all needed info in advance (a rare thing these days).
For your PHP & Xdebug version ... use 2020.2.x until 2020.3.1 will become available (EAP build should be posted later this week -- watch blog for updates)
https://youtrack.jetbrains.com/issue/WI-57282
Stumbled on this post after hours of trying to figure out what configuration i messed up in my ide. Hopefully they will rollout the fix soon. Till then All Hail to 2020.2.x versions