[xdebug-general] Re: Function call and function return breakpoints

From: Denis Anisimov <Denis.Anisimov[@]Sun.COM>
Date: Tue, 23 Oct 2007 13:39:03 +0400

Ok,
thank you ,
Denis.

Derick Rethans wrote:
> Hello Denis,
>
> On Fri, 19 Oct 2007, Denis Anisimov wrote:
>
>
>> could you please clarify a usage of breakpoints with "call" and "return"
>> type.
>> I just found that these types works fine for functions that are defined in
>> "global" scope
>> ( I mean they are not class members ).
>> But I can't get them working for functions that are class members.
>> F.e. lets assume I have a class
>> Clazz {
>> function f1(){
>> }
>> static function f2(){
>> }
>> }.
>> What function name I need to set for breakpoint command "function" argument ?
>> I tried various combination :
>> "f1"
>> "Clazz->f1"
>> "Clazz::f1"
>> "Clazz.f1"
>> Debugger didn't stop on any of these function names.
>> So could you please clarify what function name I need to use in case of
>> function "f1" and also for function "f2" ( because the second is not class
>> member , its static ).
>>
>
> It might be that you have to use "clazz" instead of "Clazz" - depending
> on which PHP version you are using. Both clazz->f1 and clazz::f1 should
> work.
>
>
>> Also could you please describe to me exact behavior these breakpoints type if
>> "filename" additional argument for command is specified ( it is not required
>> for these breakpoint types ).
>>
>> Will it just ignored or it will be used accompanying function name and
>> debugger will stop only inside pointed file and function name ?
>>
>
> AFAIK it is ignored.
>
> regards,
> Derick
>
>
Received on Tue Oct 23 2007 - 11:54:09 BST

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