

Hello,
this is a copy of the console of scilab, as i am trying to use the debug mode. I followed the exemple given by tutorial. But as you can see breakpoint has no effect and variables stay unknown. The function and instructions work the same way as no debug : Why ?
--> function v=compute(val)
> v = 1;
> for i=1:val
> v = v * i;
> end
> endfunction
--> debug()
debug> s
num enable function file condition
0 true compute:4 "i == 5"
1 true compute:4 "i==5"
2 true compute:4 "i==5"
3 true compute:4 "i == 5"
4 true compute:4 "i == 5"
debug> del
No breakpoint
debug> s
No breakpoint
debug> break compute 4 "i == 4"
num enable function file condition
0 true compute:4 "i == 4"
debug> exec compute(10)
ans =
3628800.
debug> disp v
Variable non définie : v
Scilab


Which tutorial are you referring to?


This example is found in the help browser from Scilab 6.1.0. Actually it's a bug: http://bugzilla.scilab.org/16363
It seems a patch exists: https://codereview.scilab.org/#/c/21428
But the procedure to update is out of my knowledge...
Login to add comment