help-octave
[Top][All Lists]
Advanced

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

Re: debugging failure


From: David Bateman
Subject: Re: debugging failure
Date: Mon, 26 Nov 2007 12:29:22 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Ólafur Jens Sigurðsson wrote:
> On Sun, Nov 25, 2007 at 09:06:08PM -0500, John Swensen wrote:
>   
>> On Nov 25, 2007, at 6:05 PM, Ólafur Jens Sigurðsson wrote:
>>
>>     
>>> On Sun, Nov 25, 2007 at 10:32:09PM +0100, David Bateman wrote:
>>>       
>>>> I think you want "dbstop('pkg',1)" instead
>>>>         
>>> If I do that then I get the following:
>>>
>>> octave:36> dbstop('pkg',1)
>>> ans =  179
>>> octave:37> pkg('install', 'physicalconstants-0.1.2.tar.gz')
>>> octave:38> dbwhere
>>> error: dbwhere: must be inside of a user function to use dbwhere
>>>
>>> so it doesn't stop on the breakpoint.
>>>
>>> Any idea why that is?
>>>
>>> Oli
>>> _______________________________________________
>>> Help-octave mailing list
>>> address@hidden
>>> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>>>       
>> If you call dbstop and the line number specified is not a 'executable' 
>> line, then it will set the breakpoint at the next executable line.  If you 
>> opened up the pkg.m file, I would suspect that the first executable line is 
>> 179.  And to find a list of the breakpoints, you should use dbstatus.  
>> dbwhere is used when in debug mode to find out where you are at.
>>     
>
> Ok, so what I did should have stopped on line 179 in the pkg.m file
> but didn't by some reason. Any idea what might have happend there?
>
> Oli
>
>   
line 179 of pkg is a persistent command, then is not executed except for
the first time pkg is loaded, which is also why dbstop('pkg',1) didn't
work.. You need to place the brakpoint on an executable line for example
dbstop('pkg', 185);

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]