MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001477XdebugUsage problems (Wrong Results)public2017-10-04 10:292017-10-06 15:38
ReporterLanaZem 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version2.5.5 
Target VersionFixed in Version 
Summary0001477: 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.

https://xdebug.org/docs-dbgp.php#stdout-stderr [^]
Steps To Reproduce1) Create php file
<?php
echo "Regular output";
xdebug_debug_zval_stdout("Xdebug stdout");
file_put_contents('php://stdout', "Log information");

2) Enable stdout with "stdout -i 1 -c 1"

<- stdout -i 5 -c 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" [^] command="stdout" transaction_id="5" success="1"></response>

3) Execute debugger

I expect to see all "Regular output", "Xdebug stdout" and "Log information" streams but only "Regular output" will be here.
Additional InformationReproducible for Xdebug 2.5.5 + PHP 7.1.1.

Logs are attached.
TagsNo tags attached.
Operating System
PHP Version7.1.0-7.1.4
Attached Fileslog file icon xdebug_7_2.5.log [^] (4,571 bytes) 2017-10-04 10:29

- Relationships

-  Notes
(0004433)
LanaZem (reporter)
2017-10-04 10:37

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
echo "Regular output";
$a = array(1, 2, 3);
xdebug_debug_zval_stdout('a');
file_put_contents('php://stdout', "Log information");
(0004436)
langemeijer (reporter)
2017-10-06 15:38

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.

https://youtrack.jetbrains.com/issue/WI-18714 [^]

- Issue History
Date Modified Username Field Change
2017-10-04 10:29 LanaZem New Issue
2017-10-04 10:29 LanaZem File Added: xdebug_7_2.5.log
2017-10-04 10:37 LanaZem Note Added: 0004433
2017-10-06 15:38 langemeijer Note Added: 0004436


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker