Giter VIP home page Giter VIP logo

php-xdebug-proxy's People

Contributors

aleixq avatar ales-k avatar mougrim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-xdebug-proxy's Issues

Help with multi-user debugging

[2018-11-03 11:49:47] xdebug-proxy.NOTICE: [Proxy][IdeRegistration] Listening for new connections on '0.0.0.0:9001'... array ( ) array ( )
[2018-11-03 11:49:47] xdebug-proxy.NOTICE: [Proxy][Xdebug] Listening for new connections on '0.0.0.0:9008'... array ( ) array ( )
[2018-11-03 11:50:06] xdebug-proxy.NOTICE: [IdeRegistration] Accepted connection. array (   'ide' => '127.0.0.1:61703', ) array ( )
[2018-11-03 11:50:06] xdebug-proxy.NOTICE: [IdeRegistration] Process request from IDE. array (   'ide' => '127.0.0.1:61703',   'request' => 'proxyinit -p 9001 -k WENXIN_MALL -m 1', ) array ( )
[2018-11-03 11:50:06] xdebug-proxy.WARNING: [IdeRegistration] Skip unsupported arguments. array (   'ide' => '127.0.0.1:61703',   'request' => 'proxyinit -p 9001 -k WENXIN_MALL -m 1',   'command' => 'proxyinit',   'unsupportedArguments' =>    array (     2 => '-m',   ), ) array ( )
[2018-11-03 11:50:06] xdebug-proxy.NOTICE: [IdeRegistration] Add new ide '127.0.0.1:9001' array (   'ide' => '127.0.0.1:9001',   'request' => 'proxyinit -p 9001 -k WENXIN_MALL -m 1',   'command' => 'proxyinit',   'key' => 'WENXIN_MALL', ) array ( )
[2018-11-03 11:50:06] xdebug-proxy.NOTICE: [IdeRegistration] Send response. array (   'ide' => '127.0.0.1:61703',   'response' => '<?xml version="1.0" encoding="UTF-8"?> <proxyinit success="1" idekey="WENXIN_MALL" address="127.0.0.1" port="9001"/> ', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.NOTICE: [IdeRegistration] Accepted connection. array (   'ide' => '127.0.0.1:61708', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: [IdeRegistration] Invalid request from IDE. array (   'ide' => '127.0.0.1:61708',   'request' => '519', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.NOTICE: [IdeRegistration] Process request from IDE. array (   'ide' => '127.0.0.1:61708',   'request' => '<?xml version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument version="1.0" array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument encoding="iso-8859-1"?> <init array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument xmlns="urn:debugger_protocol_v1" array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument xmlns:xdebug="http://xdebug.org/dbgp/xdebug" array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument language="PHP" array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument xdebug:language_version="7.2.10" array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument protocol_version="1.0" array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument appid="87752" array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument idekey="WENXIN_MALL"><engine array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument (c) array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument 2002-2018 array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument by array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument Derick array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: Can't parse argument Rethans]]></copyright></init> array (   'arguments' => 'version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.ERROR: [IdeRegistration] Unknown command from IDE. array (   'ide' => '127.0.0.1:61708',   'request' => '<?xml version="1.0" encoding="iso-8859-1"?> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/chendan/Project/work-wenxing/mall/index.php" language="PHP" xdebug:language_version="7.2.10" protocol_version="1.0" appid="87752" idekey="WENXIN_MALL"><engine version="2.6.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2018 by Derick Rethans]]></copyright></init>',   'command' => '<?xml', ) array ( )
[2018-11-03 11:50:12] xdebug-proxy.NOTICE: [IdeRegistration] Send response. array (   'ide' => '127.0.0.1:61708',   'response' => '<?xml version="1.0" encoding="UTF-8"?> <proxyerror success="0"><error id="1"><message>Unknown command \'&lt;?xml\'</message></error></proxyerror> ', ) array ( )

What did I do wrong?

Changes in grumphp and bad composer.lock

Trying to run this project it returns:

php-xdebug-proxy$ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - phpro/grumphp is locked to version v0.14.3 and an update of this package was not requested.
    - phpro/grumphp v0.14.3 requires composer-plugin-api ~1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint. 

I need to remove composer.lock and run composer install again.
Then it continues but it complains about grumphp.yml:

PHP Fatal error:  Uncaught GrumPHP\Exception\DeprecatedException: Direct configuration of parameter hooks_dir is not allowed anymore.                                                                                                                                         
Please rename the `parameters` section in your grumphp.yaml file to `grumphp`.                                                                                                                                                                   
More info: https://github.com/phpro/grumphp/releases/tag/v0.19.0              
                                                                                                                                                      
 in /usr/local/src/php-xdebug-proxy/vendor/phpro/grumphp/src/Exception/DeprecatedException.php:11                                               
Stack trace:                                                                                                                                   
#0 /usr/local/src/php-xdebug-proxy/vendor/phpro/grumphp/src/Configuration/GrumPHPExtension.php(40): GrumPHP\Exception\DeprecatedException::directParameterConfiguration()  
#1 /usr/local/src/php-xdebug-proxy/vendor/phpro/grumphp/src/Configuration/GrumPHPExtension.php(17): GrumPHP\Configuration\GrumPHPExtension->loadInternal()
#2 /usr/local/src/php-xdebug-proxy/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php(76): GrumPHP\Configuration\GrumPHPExtension->load()
#3 /usr/local/src/php-xdebug-proxy/vendor/symfony/dependency-injection/Compiler/Compiler.php(91): Symfony\Component\DependencyInjection\Compiler\MergeExtension in /usr/local/src/php-xdebug-proxy/vendor/phpro/grumphp/src/Exception/DeprecatedException.php on line 11
GrumPHP can not sniff your commits! (invalid-exit-code)                 
PHP Fatal error:  Uncaught GrumPHP\Exception\DeprecatedException: Direct configuration of parameter hooks_dir is not allowed anymore.
Please rename the `parameters` section in your grumphp.yaml file to `grumphp`.      
More info: https://github.com/phpro/grumphp/releases/tag/v0.19.0

 in /usr/local/src/php-xdebug-proxy/vendor/phpro/grumphp/src/Exception/DeprecatedException.php:11
Stack trace:
#0 /usr/local/src/php-xdebug-proxy/vendor/phpro/grumphp/src/Configuration/GrumPHPExtension.php(40): GrumPHP\Exception\DeprecatedException::directParameterConfiguration()
#1 /usr/local/src/php-xdebug-proxy/vendor/phpro/grumphp/src/Configuration/GrumPHPExtension.php(17): GrumPHP\Configuration\GrumPHPExtension->loadInternal()
#2 /usr/local/src/php-xdebug-proxy/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php(76): GrumPHP\Configuration\GrumPHPExtension->load()
#3 /usr/local/src/php-xdebug-proxy/vendor/symfony/dependency-injection/Compiler/Compiler.php(91): Symfony\Component\DependencyInjection\Compiler\MergeExtension in /usr/local/src/php-xdebug-proxy/vendor/phpro/grumphp/src/Exception/DeprecatedException.php on line 11
GrumPHP can not sniff your commits! (invalid-exit-code)

Following the issue, there are breaking changes in grumphp since 0.16: phpro/grumphp#644

Support for `-m` multi debugger option

-m | this tells the demon that the IDE supports (or doesn't) multiple debugger sessions. if -m is missing, zero or no support is

https://xdebug.org/docs/dbgp

Possible to support this? I'm using PHP Tools from devsense and have trouble registering with this proxy. Logs below

[2022-12-24T12:47:06.799867+08:00] xdebug-proxy.NOTICE: [IdeRegistration] Accepted connection. array (   'ide' => '192.168.1.3:13520', ) array ( )
[2022-12-24T12:47:06.800074+08:00] xdebug-proxy.NOTICE: [IdeRegistration] Process request from IDE. array (   'ide' => '192.168.1.3:13520',   'request' => 'proxyinit -k dev1 -p 9000 -m 1', ) array ( )
[2022-12-24T12:47:06.800173+08:00] xdebug-proxy.WARNING: [IdeRegistration] Skip unsupported arguments. array (   'ide' => '192.168.1.3:13520',   'request' => 'proxyinit -k dev1 -p 9000 -m 1',   'command' => 'proxyinit',   'unsupportedArguments' =>    array (     2 => '-m',   ), ) array ( )
[2022-12-24T12:47:06.800232+08:00] xdebug-proxy.NOTICE: [IdeRegistration] Change ide from '192.168.1.3:9000' to '192.168.1.3:9000' array (   'ide' => '192.168.1.3:9000',   'request' => 'proxyinit -k dev1 -p 9000 -m 1',   'command' => 'proxyinit',   'key' => 'dev1', ) array ( )
[2022-12-24T12:47:06.800322+08:00] xdebug-proxy.NOTICE: [IdeRegistration] Send response. array (   'ide' => '192.168.1.3:13520',   'response' => '<?xml version="1.0" encoding="UTF-8"?> <proxyinit success="1" idekey="dev1" address="192.168.1.3" port="9000"/> ', ) array ( )
[2022-12-24T12:47:06.800460+08:00] xdebug-proxy.ERROR: [IdeRegistration] Can't write response to ide: Amp\ByteStream\ClosedException: The stream was closed by the peer in /xdebug/.config/composer/vendor/amphp/byte-stream/lib/ResourceOutputStream.php:196 Stack trace: #0 /xdebug/.config/composer/vendor/amphp/byte-stream/lib/ResourceOutputStream.php(171): Amp\ByteStream\ResourceOutputStream->send() #1 /xdebug/.config/composer/vendor/amphp/socket/src/Socket.php(74): Amp\ByteStream\ResourceOutputStream->end() #2 /xdebug/.config/composer/vendor/mougrim/php-xdebug-proxy/src/Handler/DefaultIdeHandler.php(263): Amp\Socket\Socket->end() #3 [internal function]: Mougrim\XdebugProxy\Handler\DefaultIdeHandler->handle() #4 /xdebug/.config/composer/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send() #5 /xdebug/.config/composer/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}() #6 /xdebug/.config/composer/vendor/amphp/amp/lib/Deferred.php(53): Amp\Promise@anonymous->resolve() #7 /xdebug/.config/composer/vendor/amphp/byte-stream/lib/ResourceInputStream.php(109): Amp\Deferred->resolve() #8 /xdebug/.config/composer/vendor/amphp/amp/lib/Loop/Driver.php(119): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}() #9 /xdebug/.config/composer/vendor/amphp/amp/lib/Loop/Driver.php(72): Amp\Loop\Driver->tick() #10 /xdebug/.config/composer/vendor/amphp/amp/lib/Loop.php(95): Amp\Loop\Driver->run() #11 /xdebug/.config/composer/vendor/mougrim/php-xdebug-proxy/src/Proxy.php(47): Amp\Loop::run() #12 /xdebug/.config/composer/vendor/mougrim/php-xdebug-proxy/src/Runner.php(65): Mougrim\XdebugProxy\Proxy->run() #13 /xdebug/.config/composer/vendor/mougrim/php-xdebug-proxy/bin/xdebug-proxy(35): Mougrim\XdebugProxy\Runner->run() #14 /xdebug/.config/composer/vendor/bin/xdebug-proxy(120): include('...') #15 {main} array (   'ide' => '192.168.1.3:13520',   'response' => '<?xml version="1.0" encoding="UTF-8"?> <proxyinit success="1" idekey="dev1" address="192.168.1.3" port="9000"/> ', ) array ( )

Timeout faster if there is no IDE

Amp\Socket\ConnectException: Connecting to tcp://192.168.1.3:9000 failed: timeout exceeded (10000 ms)

Is there a way to adjust the 10 seconds timeout? It causes the website to become very slow if the IDE's debugger is not running. Thank you!

Support for xdebug 3.0.1

Hello
Your proxy server has worked great for us! We have used it for nearly 1 year.
Recently we upgraded PHPSTORM to 2020.3 from 2020.2 and the xdebug and proxy stopped working.
PHPSTORM 2020.3 now requires xdebug 3.0.1. After upgrading, your php proxy would still not work.
xdebug.org has changed many configuration settings. They stopped supporting the previous settings! Why would they not support BOTH the old and new settings and give people time to migrate??? Very frustrating! xdebug.org proxy is not very well documented, so we would like to continue to use your php xdebug-proxy. Can you help us getting it working? I have attached a diagram of our configuration that WAS working before the xdebug update.

Thank you!!
Debug Configuration 2020-2.pdf

Non blocking proxy

As with pydgbpproxy from komodo, this also blocks all the sockets until the xdebug session has ended. If I am correct one neat solution will be use http-session amphp component, but I cannot find the documentation to carry on, did you try to be able to listen to multiple sessions in parallel or concurrent?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.