View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001840 | Xdebug | Step Debugging | public | 2020-08-31 06:08 | 2020-08-31 15:50 |
| Reporter | cheddam | Assigned To | derick | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | Docker | OS | macOS (Host), Debian (Container) | OS Version | 10.15.6, 10.5 |
| Summary | 0001840: remote_enable seems to be ignored under Xdebug 3 / PHP 8 configuration | ||||
| Description | I'm attempting to use Xdebug 3 to analyse PHP 8 compatibility issues in the Silverstripe CMS project. I've set up a Docker image to drive this, and am running IntelliJ IDEA (equivalent of PHPStorm) on the host machine with Xdebug enabled. Unfortunately, despite applying the following config both in a XDEBUG_CONFIG environment variable and later directly in the php.ini, I've been unable to get Xdebug to connect to IDEA, and I'm not even able to get remote logs working. I validated via telnet that the Docker container is able to connect back to the host using the specified hostname and port (host.docker.internal / 9000). IDEA's built-in Xdebug Config Checker states that xdebug.remote_enable needs to be set to 1 (despite this already being the case.) | ||||
| Steps To Reproduce |
I've tried appending the following to the Dockerfile to set config directly: RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini xdebug.log is populated, but xdebug-remote.log is not. | ||||
| Additional Information | Weirdly, the remote_enable setting isn't even listed in phpinfo() output, nor the remote_log setting. Is there a way to build the xdebug extension that doesn't include the remote capabilities, that I might have accidentally invoked? | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 8.0-dev | ||||
|
|
Please read the upgrading guide: https://3.xdebug.org/docs/upgrade_guide — Also note that Xdebug 3 has not been released, not even as alpha. |
|
|
Ah, wish I'd found that before bothering you! Thanks for the pointer :) (Totally aware that I'm dealing with prerelease software here - just trying to get ahead of the curve on PHP 8 support!) |
|
|
No prob. Testing alpha software is a good idea. I saw your question on IRC, but it was in the middle of the night. I'd love the feedback for Xdebug 3 (usability, functionality, etc), but it's probably best to not have that in the issue tracker. Feel free to email me too. (derick at...) |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-08-31 06:08 | cheddam | New Issue | |
| 2020-08-31 09:40 | derick | Assigned To | => derick |
| 2020-08-31 09:40 | derick | Status | new => closed |
| 2020-08-31 09:40 | derick | Resolution | open => no change required |
| 2020-08-31 09:40 | derick | Note Added: 0005450 | |
| 2020-08-31 11:46 | cheddam | Note Added: 0005451 | |
| 2020-08-31 15:50 | derick | Note Added: 0005452 |