View Issue Details

IDProjectCategoryView StatusLast Update
0002098XdebugStep Debuggingpublic2022-12-08 18:50
ReporterZobo Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version3.2dev 
Target Version3.2devFixed in Version3.2.0 
Summary0002098: With breakpoint_include_return_value enabled step_out break at every function
Description

When breakpoint_include_return_value is enabled step_out does not behave normal. When I am in a function, or main, when I step_out I would expect to be returned to the calling function.

Steps To Reproduce
<?php

var_dump("");
>dbgpClient.exe -x
Xdebug Simple DBGp client (0.4.2)
Copyright 2019-2020 by Derick Rethans
In dumb client mode

Waiting for debug server to connect on port 9003.
Connect from [::1]:1690
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///C:/local_disk/zobo/Projects/vscode-php-debug/vscode-php-debug/testproject/rettest1.php" language="PHP" xdebug:language_version="8.1.2" protocol_version="1.0" appid="13448"><engine version="3.2.0-dev"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init>
DBGp/1.0: Xdebug 3.2.0-dev — For PHP 8.1.2
Debugging file:///C:/local_disk/zobo/Projects/vscode-php-debug/vscode-php-debug/testproject/rettest1.php (ID: 13448/)
(cmd) feature_set -n breakpoint_include_return_value -v 1
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="breakpoint_include_return_value" success="1"></response>
1 | feature_set
1 | breakpoint_include_return_value: OK

(cmd) step_out
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_out" transaction_id="2" status="break" reason="ok"><xdebug:message filename="file:///C:/local_disk/zobo/Projects/vscode-php-debug/vscode-php-debug/testproject/rettest1.php" lineno="3"></xdebug:message><xdebug:return_value><property type="null"></property></xdebug:return_value></response>
2 | step_out > break/ok
2 | file:///C:/local_disk/zobo/Projects/vscode-php-debug/vscode-php-debug/testproject/rettest1.php:3

(cmd)

(cmd) context_get
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="3" context="0"><property name="$__RETURN_VALUE" fullname="$__RETURN_VALUE" type="null" facet="readonly return_value virtual"></property></response>
3 | context_get
3 | null $__RETURN_VALUE:

(cmd) stack_get
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="4"><stack where="var_dump" level="0" type="file" filename="file:///C:/local_disk/zobo/Projects/vscode-php-debug/vscode-php-debug/testproject/rettest1.php" lineno="3"></stack><stack where="{main}" level="1" type="file" filename="file:///C:/local_disk/zobo/Projects/vscode-php-debug/vscode-php-debug/testproject/rettest1.php" lineno="3"></stack></response> 
4 | stack_get
4 | 0: file:///C:/local_disk/zobo/Projects/vscode-php-debug/vscode-php-debug/testproject/rettest1.php:3: var_dump
4 | 1: file:///C:/local_disk/zobo/Projects/vscode-php-debug/vscode-php-debug/testproject/rettest1.php:3: {main}
Additional Information

xdebug GIT commit: 782e89c883ef0fe62da067a92d9a3279e7c71ede

TagsNo tags attached.
Operating System
PHP Version8.1.0-8.1.4

Activities

Issue History

Date Modified Username Field Change
2022-06-16 11:30 Zobo New Issue
2022-06-16 11:32 derick Steps to Reproduce Updated
2022-06-28 16:07 derick Note Added: 0006340
2022-06-28 16:08 derick Assigned To => derick
2022-06-28 16:08 derick Status new => closed
2022-06-28 16:08 derick Resolution open => fixed
2022-06-28 16:08 derick Fixed in Version => 3.2dev
2022-06-28 16:08 derick Product Version => 3.2dev
2022-06-28 16:08 derick Target Version => 3.2dev
2022-07-20 15:49 derick Fixed in Version 3.2dev => 3.2.0alpha1
2022-12-08 18:50 derick Fixed in Version 3.2.0alpha1 => 3.2.0