View Issue Details

IDProjectCategoryView StatusLast Update
0001518XdebugFeature/Change requestpublic2019-01-22 21:56
ReporterLanaZemAssigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status acknowledgedResolutionopen 
Product Version2.6.0beta1 
Target VersionFixed in Version 
Summary0001518: Send backtraces in error notifications in same format as "stack_get" response.
DescriptionAt the moment but Xdebug doesn't send backtraces in error notifications but it will be useful to have them.

With the current implementation, Xdebug can send backtraces in the same format they are shown in output, e.g. as a list for CLI execution and as an HTML table for
Web Server execution.

Error notifications are really useful for Web Server debugging but an HTML table inside IDE console is not readable.
Steps To Reproduce1) Create PHP file;
<?php

echo $bar;

2) Start debugger session for the script;

3) Enable error notifications;
<- feature_set -i 5 -n notify_ok -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="notify_ok" success="1"></response>

4) Resume script execution and check received error notification;
<notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" name="error">
<xdebug:message filename="file:///home/user/PhpstormProjects/xdebug_notifications/app/notify.php" lineno="3" type="Notice">
<![CDATA[Undefined variable: bar]]>
</xdebug:message>
</notify>
TagsNo tags attached.
Operating System
PHP Version7.2.0-7.2.4

Activities

LanaZem

2018-01-18 16:06

reporter  

xdebug_error_notify.log (12,067 bytes)

Issue History

Date Modified Username Field Change
2018-01-18 16:06 LanaZem New Issue
2018-01-18 16:06 LanaZem File Added: xdebug_error_notify.log
2018-01-19 11:05 derick Status new => acknowledged
2018-01-19 11:05 derick Target Version => 2.7.0dev
2018-01-19 11:05 derick Summary Send backtraces in error notifications not wrapped in html => Send backtraces in error notifications in same format as "stack_get" response.
2019-01-22 21:56 derick Target Version 2.7.0dev =>