"whos -all" and "who -all" fail

David Bateman David.Bateman at motorola.com
Mon May 5 11:48:45 CDT 2008


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                                David.Bateman at motorola.com
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



More information about the Octave-maintainers mailing list