[xdebug-general] XDebug breakpoints

From: Viktor Semykin <kostenko.ml[@]gmail.com>
Date: Wed, 28 Jan 2009 10:33:20 +0200

Hi everyone

I'm new to xdebug and cannot make breakpoints work.
My code is

<?php
function callf()
{
     xdebug_break();
     echo 'Function Echo';
}

     echo 'First Echo';
     callf();
     echo 'Last Echo';

I set breakpoint with "breakpoint_set -t line -f %s -n 4 -i 1" and it
appears in breakpoint list. Then Xdebug toggles explicit breakpoint at
line 3 but doesn't toggle one at line 4. Setting breakpoint on any other
line as well as '-t call' also doesn't work.

My XDebug config

zend_extension=/usr/lib/php/20060613/xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_host=localhost
xdebug.extended_info=1
xdebug.collect_params=3
xdebug.show_local_vars=0

$ php --version
PHP 5.2.7 with Suhosin-Patch 0.9.6.3 (cli) (built: Dec 6 2008 19:42:20)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
     with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans
Received on Wed Jan 28 2009 - 09:27:11 GMT

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