octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "whos -all" and "who -all" fail


From: David Bateman
Subject: Re: "whos -all" and "who -all" fail
Date: Mon, 05 May 2008 18:48:45 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080306)

David Bateman wrote:
> In fact one of the reasons I wanted this feature was to allow the names
> of loaded subfunctions to be  identified so that I could do something like
>
> dbstop ("func:subfunc", 1)
>
> so that the debug stopped in the subfunction. However, this doesn't seem
> to work either with the new symbol table code. Note that it would be
> nice if  dbstop("func") was equivalent to dbstop("func", 1), but it
> doesn't appear to be, as the second returns a breakpoint where the first
> returns an empty matrix indicating that no breakpoint was set.
>
> regards
> david
>
>
>   
Its even worse than that.. If I have a function for example

function y = testf1 (x)
 y = testf2(x);   ## line 2
endfunction
function y = testf2(x)
 y = x +1;  ## line 5
endfunction

I can do dbstop("testf1",2). However, I can't set the breakpoint dbstop
("testf1:testf2",1) and if I set the breakpoint like dbstop ("testf1",
5), then the breakpoint is never triggered. So there is no way to set a
breakpoint in a subfunction. The first of these syntaxes worked with
3.0.1, but not the second.

D.

-- 
David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



reply via email to

[Prev in Thread] Current Thread [Next in Thread]