kdev-xdebug commit breaks debugging web site

Arjan van der Veen avdveen at palanthir.nl
Tue Dec 18 22:17:55 GMT 2018

Hi all,

Today I spent some time figuring out why debugging a PHP website did not worked as expected: when starting a debugging session on KDevelop 5.3.0 and 5.3.40, only the first HTTP call can be used for debugging. After the PHP script is finished, the debugger stops. This is not quite workable for debugging a web site.
When I looked into the commits to the kdev-xdebug on Github, I noticed the commit linked to this review: https://phabricator.kde.org/D9034

If I reverse this commit by commenting out the added line 126 containing "&& m_server->hasPendingConnections()", the web site debugging works again as expected. The debugger keeps listening on port 9000 and following requests can also be debugged.

I am not saying the commit discussed here is wrong, because I still get a QAbstractSocket::RemoteHostClosedError after each HTTP request to the PHP in my terminal. I still think though this change needs to be reviewed again since it breaks the debugging for multiple HTTP requests.

I hope someone can look into this, I needed I am happy to provide further details.

Kind regards,

Arjan van der Veen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20181218/6e9babec/attachment.html>

More information about the KDevelop mailing list