troizet opened a new pull request, #6876:
URL: https://github.com/apache/netbeans/pull/6876

   xdebug version 3.1.6 and higher does not allow setting a duplicate 
breakpoint by method.
   Since version 3.2.0 it also does not allow setting a duplicate breakpoint by 
line.
   
   If an attempt is made to set a duplicate breakpoint, xdebug returns an error:
   ```
   <response xmlns="urn:debugger_protocol_v1" 
xmlns:xdebug="https://xdebug.org/dbgp/xdebug"; command="breakpoint_set" 
transaction_id="141" state="enabled" status="starting" reason="ok">
        <error code="200">
                <message>
                        <![CDATA[breakpoint could not be set]]>
                </message>
        </error>
   </response>
   ```
   
   This PR implements this error handling and marks the breakpoint as broken. 
   Tested on versions of xdebug: `2.5.5`, `3.1.6`, `3.2.1`, `3.3.0`.
   
   Example:
   
   
https://github.com/apache/netbeans/assets/9607501/ca7796df-9096-48a9-ab01-ec2f056ca13c
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to