error in entering debug mode

David Bateman adb014 at gmail.com
Fri May 9 03:10:43 CDT 2008


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.



More information about the Help-octave mailing list