View Issue Details

IDProjectCategoryView StatusLast Update
0002364XdebugStep Debuggingpublic2025-09-04 12:51
Reporterniikophil Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0002364: Allow to add breakpoint between chained method calls
Description

Follow up of https://phpc.social/@nikophil/115139621216993248

With the same idea of being able to add breakpoints between intermediate values in a pipe chain, it would be very helpful to be able to add breakpoints between chained method calls.

thanks!

Steps To Reproduce

Take the following code example:

<?php

class Foo
{
    public function __construct(
        public readonly string $string
    )
    {
    }

    public function strtoupper(): Foo
    {
        return new Foo(strtoupper($this->string));
    }

    public function concat(string $toConcat): Foo
    {
        return new Foo($this->string.$toConcat);
    }
}

$foo = (new Foo('a'))
    ->strtoupper()
    ->concat('b')
    ->concat('c')
    ;

And try to debug this. step_over won't work.

TagsNo tags attached.
Operating System
PHP Version8.3.5-8.3.9

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-09-03 09:55 niikophil New Issue
2025-09-04 12:51 derick Summary [RFC] Allow to add breakpoint between chained method calls => Allow to add breakpoint between chained method calls
2025-09-04 12:51 derick Steps to Reproduce Updated