View Issue Details

IDProjectCategoryView StatusLast Update
0002213XdebugStep Debuggingpublic2024-03-28 09:14
ReporterZobo Assigned Toderick  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status confirmedResolutionopen 
Product Version3.2.2 
Target Version3.4dev 
Summary0002213: Give access to thrown Exception object
Description

When execution stops because of a thrown exception, there is currently no way to inspect the exception.

Maybe a good place to get the exception would be like with __RETURN_VALUE ... __EXCEPTION ?

Steps To Reproduce

<?php

throw new \Exception("TEST");

breakpoint_set -t exception -x *
run

<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug&quot; command="run" transaction_id="2" status="break" reason="ok"><xdebug:message filename="file:///C:/local_disk/zobo/Projects/vscode-php-debug/TEST/ex.php" lineno="5" exception="Exception"><![CDATA[TEST]]></xdebug:message></response>

TagsNo tags attached.
Operating System
PHP Version8.2.0-8.2.9

Activities

Zobo

2023-11-16 14:12

reporter   ~0006680

Proposing patch: https://github.com/xdebug/xdebug/pull/922

Issue History

Date Modified Username Field Change
2023-11-15 17:32 Zobo New Issue
2023-11-16 14:12 Zobo Note Added: 0006680
2023-11-30 10:42 derick Severity minor => feature
2023-11-30 10:42 derick Target Version => 3.4dev
2024-03-28 09:14 derick Assigned To => derick
2024-03-28 09:14 derick Status new => confirmed