MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001518XdebugFeature/Change requestpublic2018-01-18 16:062018-01-19 11:05
ReporterLanaZem 
Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version2.6.0beta1 
Target Version2.7.0devFixed 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
Attached Fileslog file icon xdebug_error_notify.log [^] (12,067 bytes) 2018-01-18 16:06

- Relationships

-  Notes
There are no notes attached to this issue.

- 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.


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker