[PhpStorm 2016.1] Debug across subdomains in one debug instance
Hello,
I am evaluating the new PHPStorm version. So far everything looks great - however I face a problem with the XDebug settings.
Environment
- Windows
- PHPStorm Version 2016.1.
- WAMP
- 2 Virtual hosts (client.test.com and service.test.com)
- Codebase of the client and service code is in one PHPStorm project
- Xdebug config in php.ini looks like
zend_extension="...php5.6.16\zend_ext\php_xdebug-2.4.0rc2-5.6-vc11-x86_64.dll"
xdebug.remote_enable=1
xdebug.remote_port="9000"
xdebug.remote_autostart=1
xdebug.profiler_enable=1
xdebug.profiler_output_dir="...\Desktop\_tmp"
Using the zero-configuration logic - I can easily debug both codebases (client/service). However, only if I open them in two separate browser tabs.
However, since the client calls the service via REST - I want to debug both codes in one debug session. But this does not work unfortunately. In older versions of PHPStorm I had no problem with it.
Any idea on how to achieve this in PHPStorm 2016.1 ???
Thanks,
benny!
Please sign in to leave a comment.
Hi there,
First of all try increasing max number of simultaneous connections in "Settings/Preferences | Language & Frameworks | PHP | Debug" -- by default it has just 1.
>However, since the client calls the service via REST - I want to debug both codes in one debug session.
Each sub-request is separate session from xdebug point of view (you are calling another script via separate HTTP request) so you will have separate debug session tab in PhpStorm as well