[xdebug-general] call/return type breakpoints against class methods don't work

From: FUJINAKA Tohru <tohru[@]nakarika.com>
Date: Fri, 03 Oct 2008 13:19:48 +0900


In my local environment the feature of breakpoints with call/return
types against class methods seems not work.

Once Looked in the ML archive I found a thread about this:

So I did same things but it still failed.

I'll attach details below.
Any suggestions would be appreciated.

Thanks in advance.

FUJINAKA Tohru <tohru[@]nakarika.com>
-- [environment] --
PHP 5.2.6 (cgi) Copyright (c) 1997-2008 The PHP Group
Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans
-- [php] --
function Func() {
    return true;
class Clazz {
    function f1() {
        return true;
    static function f2() {
        return true;
$clazz = new Clazz();
$a = 1;
-- [debugclient] --
breakpoint_set -i 6 -t line -f file:///var/www/index.php -n 22
breakpoint_set -i 7 -t call -m Clazz::f1
breakpoint_set -i 8 -t call -m clazz::f1
breakpoint_set -i 9 -t call -m Clazz->f1
breakpoint_set -i 10 -t call -m clazz->f1
run -i 11
breakpoint_list -i 12
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="12">
 <breakpoint type="call" function="Clazz::f1" state="enabled" hit_count="0" hit_value="0" id="87980003"> </breakpoint>
 <breakpoint type="call" function="clazz-&gt;f1" state="enabled" hit_count="0" hit_value="0" id="87980006"></breakpoint>
 <breakpoint type="call" function="Clazz-&gt;f1" state="enabled" hit_count="0" hit_value="0" id="87980005"></breakpoint>
 <breakpoint type="call" function="clazz::f1" state="enabled" hit_count="0" hit_value="0" id="87980004"></breakpoint>
 <breakpoint type="line" filename="file:///var/www/index.php" lineno="22" state="enabled" hit_count="1" hit_value="0" id="87980002"></breakpoint>
Received on Fri Oct 03 2008 - 06:26:46 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST