0
using debug mode

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 12-05-20, 5:43 a.m. B@Ksva
0

Which tutorial are you referring to?

28-05-20, 3:22 p.m. Rashmi


0

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...

Oops! Looks like spam! Waiting for moderator approval
28-05-20, 5:18 p.m. B@Ksva

Login to add comment
Oops! Looks like spam! Waiting for moderator approval


Log-in to answer to this question.