You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Procházka (Jira)" <ji...@apache.org> on 2021/01/10 17:28:00 UTC

[jira] [Comment Edited] (NETBEANS-2843) Xdebug's support for the 'resolved_breakpoint'

    [ https://issues.apache.org/jira/browse/NETBEANS-2843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17262234#comment-17262234 ] 

Tomáš Procházka edited comment on NETBEANS-2843 at 1/10/21, 5:27 PM:
---------------------------------------------------------------------

Breakpoint resolution is available in Xdebug 2.8 (released 31st October 2019) or newer.
According to https://xdebug.org/docs/compat PHP 7.1 is the oldest version compatible with Xdebug 2.8.
So I decided to make this feature turned on by default.

For simple test use following code:
{code:php}
$array = [
    'a',
    'b',
    'c',
];

var_dump($array);
{code}

Place breakpoint on line starting "{{$array = [}}" and start debug session.
With breakpoint resolution switched off program will run without stopping.
After turning breakpoint resolution on debugger will stop at line "{{'a'}}".



was (Author: kacer):
Breakpoint resolution is available in Xdebug 2.8 (released 31st October 2019) or newer.
According to https://xdebug.org/docs/compat PHP 7.1 is the oldest version compatible with Xdebug 2.8.
So I decided to make this feature turned on by default.

For simple test use following code:
{code:php}
$array = [
    'a',
    'b',
    'c',
];

var_dump($array);
{code}

Place breakpoint on line starting {{$array}} and start debug session.
With breakpoint resolution switched off program will run without stopping.
After turning breakpoint resolution on debugger will stop at line {{'a'}}.


> Xdebug's support for the 'resolved_breakpoint' 
> -----------------------------------------------
>
>                 Key: NETBEANS-2843
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2843
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Debugger
>    Affects Versions: 12.0
>         Environment: Xdebug 2.8.0alpha1
>            Reporter: Vítězslav Dvořák
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When IDEs opt in into this flag, Xdebug runs additional logic to make sure that it tries to find the right line to break on, even if you are setting a breakpoint on a line of code, where the PHP engine doesn't think there is any code.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists