View Issue Details

IDProjectCategoryView StatusLast Update
0001518XdebugStep Debuggingpublic2021-11-10 15:45
ReporterLanaZem Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionno change required 
Product Version2.6.0beta1 
Summary0001518: Send backtraces in error notifications in same format as "stack_get" response.
Description

At 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 Reproduce

1) 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

derick

2021-03-17 09:29

administrator   ~0005750

Is this issue still relevant to you? I think we might have dropped the ball on this.

LanaZem

2021-04-09 13:36

reporter   ~0005823

Since the notifications release, we didn't have any incoming requests for this feature. So I'd say we can shelve this request and get back to it if situation changes.

derick

2021-11-10 15:45

administrator   ~0006154

Let me close this out then. Thanks :-)