help-octave
[Top][All Lists]
Advanced

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

Re: error in entering debug mode


From: David Bateman
Subject: Re: error in entering debug mode
Date: Fri, 09 May 2008 10:10:43 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080306)

pauljoseph wrote:
> Hi,
> recently I tried to use the command "keyboard" to enter the debug mode. It
> behaves strangely.
> 
> If I just start Octave, it can enter debug quite clean, but If I rerun the
> script again, it will give me this error
> 
> debug> "error: input: reading user-input failed!"  
> 
> and it won't stop until I hit Ctrl-C.
> my input file is nothing special, I just put "keyboard" in the line that I
> want to stop.
> 
> anyone knows why? is this a bug? or did I use the command wrongly?
> I am using Octave 3.0.0


The debug mode doesn't run the code through the parser but instead
treats it line by line.. Therefore in debug mode you can write

for i = 1 : n, y(i) = foo(i); end

but not

for i = 1 : n
  y (i) = foo(i)
end

I imagine your problem is somehow related to that..

D.



reply via email to

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