View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002017 | Xdebug | Step Debugging | public | 2021-09-15 18:36 | 2021-09-16 10:58 |
Reporter | Ernestophel | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | mini-pc | OS | kubuntu | OS Version | 2104 |
Product Version | 3.0.4 | ||||
Target Version | 3.1dev | ||||
Summary | 0002017: broken pipe, no debug on vscode, devilbox | ||||
Description | Running apache webserver under a devilbox under my Linux OS. PHP 7.4 and xdebug 3.04 working under the devilbox. Webpage is shown in Browser. [1688] Log opened at 2021-09-15 18:15:24.100355 [1688] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response> [1688] [Step Debug] WARN: 2021-09-15 18:15:24.456809: There was a problem sending 179 bytes on socket 8: Broken pipe. | ||||
Steps To Reproduce | Start devilbox (httpd php mysql); Start vhost in webbrowser, webpage opens up. In VSCODE open the corresponding index.php (in the document root folder). Press F5 to start debugging. Debugging toolbar shows only buttons for stop and restart. xdebug.log is written (please, see above). | ||||
Tags | No tags attached. | ||||
Operating System | Kubuntu | ||||
PHP Version | 7.4.0-7.4.4 | ||||
|
docker-compose.yml of devilbox has PHP_FPM_SERVER_PORT=9000 entry. I assume that with xdebug 3 this port has to be changed to 9003. Trying to override the yml leads to a temporaily unavailable server problem. |
|
This does not look like a bug, but rather a conflict between ports. PHP_FPM should stay on port 9000, and Xdebug and the VS Code plugin need to be configured with port 9003. That is the default for Xdebug 3, but some older versions of the VS Code plugin still have it as 9000 - you need to change that to 9003. The PHP-FPM port and Xdebug/VS Code plugin code can not be the same. |
|
Thanks a lot, derik. Tried this out but still not working: [1685] Log opened at 2021-09-16 09:13:50.362560 My settings (php.ini devilbox): launch.json of vscode: .env of devilbox: My project: |
|
sorry, launch.json new: "version": "0.2.0", |
|
phpinfo() leads to this help paragraph: DBG-E-NOCON The debugger could not make a connection to the client. The error message indicates which host and port combinations were tried, and through which configuration options it came to that conclusion. An example: Could not connect to debugging client. Tried: ::1:9003 (from REMOTE_ADDR HTTP header), localhost:9003 (fallback through xdebug.client_host/xdebug.client_port) This message indicates that Xdebug first tried to use ::1:9003 (IPv6's localhost) from the REMOTE_ADDR header, and then it fell back to localhost:9003 as configured with xdebug.client_host and xdebug.client_port. Suggested solutions: *Check whether your debugging client is listening on the indicated address and port. On Linux and OSX, you can use netstat -a -n | grep LISTEN to check. -> listening to .9003 Maybe I should try instead "xdebugSettings": {} in luanch.json of vscode? if so, which is the appropriate entry to set? |
|
But "xdebugSettings":{} would not make much sense, as it is xdebug trying to connect to my OS (vscode), so the correct address should be set on the server side, I assume. But how and where? |
|
That's right, VS Code does need the settings you've shown earlier.
Yes, it needs to be set on the server side. It's A few comments about some of your settings:
Has been removed in Xdebug 3: https://xdebug.org/docs/upgrade_guide#removed-xdebug.remote_handler
That's correct, it has been replace by
Has been replaced by it would be good if you read the rest of the upgrade guide too: https://xdebug.org/docs/upgrade_guide |
|
I tried this in my xdebug.ini on devilbox, and its working!! Typing "xdebug." does not show me this option, maybe a mistake in intellisense or whatever is there in the background? Thats why I did not try this before. Not sure why to take just this address anf if this address will be always the same? |
|
Obviously there is no intellisense behind .ini files, just simple word completion for words I used before under vscode. Thats been my fault. I found in the devilbox documenteation: So i am fine now, thanks a lot, derick!!!!! (There is so much info on the web, and its hard to separate the useful from the rest. Asking here is definetely a good idea) |
|
Normally, docker containers will change the IP address, but it does not seem that this is the case with devilbox. Instead of setting the IP address, you should also be able to use As this is not a bug, I will be closing this report. |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-09-15 18:36 | Ernestophel | New Issue | |
2021-09-15 20:21 | Ernestophel | Note Added: 0006006 | |
2021-09-16 08:51 | derick | Status | new => feedback |
2021-09-16 08:51 | derick | Target Version | => 3.1dev |
2021-09-16 08:51 | derick | Note Added: 0006008 | |
2021-09-16 09:25 | Ernestophel | Note Added: 0006009 | |
2021-09-16 09:25 | Ernestophel | Status | feedback => new |
2021-09-16 09:28 | Ernestophel | Note Added: 0006010 | |
2021-09-16 09:49 | Ernestophel | Note Added: 0006012 | |
2021-09-16 09:53 | Ernestophel | Note Added: 0006013 | |
2021-09-16 10:14 | derick | Note Added: 0006014 | |
2021-09-16 10:30 | Ernestophel | Note Added: 0006015 | |
2021-09-16 10:46 | Ernestophel | Note Added: 0006016 | |
2021-09-16 10:58 | derick | Assigned To | => derick |
2021-09-16 10:58 | derick | Status | new => closed |
2021-09-16 10:58 | derick | Resolution | open => no change required |
2021-09-16 10:58 | derick | Note Added: 0006017 |