View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001477 | Xdebug | Uncategorized | public | 2017-10-04 09:29 | 2017-12-17 14:38 |
| Reporter | LanaZem | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | not fixable | ||
| Product Version | 2.5.5 | ||||
| Summary | 0001477: Stream 'stdout' doesn't send all output to IDE | ||||
| Description | 'stdout' options configured to copy all output skips output for 'xdebug_debug_zval_stdout(...)' and 'file_put_contents(...)' methods. | ||||
| Steps To Reproduce | 1) Create php file 2) Enable stdout with "stdout -i 1 -c 1" <- stdout -i 5 -c 1 3) Execute debugger I expect to see all "Regular output", "Xdebug stdout" and "Log information" streams but only "Regular output" will be here. | ||||
| Additional Information | Reproducible for Xdebug 2.5.5 + PHP 7.1.1. Logs are attached. | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 7.1.0-7.1.4 | ||||
|
|
I've added php script file with incorrect 'xdebug_debug_zval_stdout' usage. Here's the right one, the ouput from 'xdebug_debug_zval_stdout' still won't be sent: <?php |
|
|
Hi Derick, A bit of context for this issue: LanaZem is working to fix my feature request in PhpStorm: Xdebug stdout redirection, and show it in the 'Console' tab on the debugger panel. |
|
|
Hi, I have had a look, and I don't think this is something I can fix. Most normal output in PHP goes through it's SAPI layer, which Xdebug can hook into to intercept output. However, direct output to stdout, which is what xdebug_debug_zval_stdout() and file_put_contents("php://stdout", ...) do, does not go through the SAPI layer, and hence Xdebug can't intercept it. Which means I can't send it over the debugging protocol. cheers, |