title: How to debug Scilab scripts?
body: <p>Is there a way in Scilab to debug a script that is in an sce file, like DrawCircle.sce ? Adding pauze commands inside a script more or less works, but the program is behaving so strangely, that I would like to be able to follow it step by step.</p>
  <p>There is a debug mode, as explained in <a href="https://www.scilab.org/debugging-scilab-6" rel="nofollow noreferrer">https://www.scilab.org/debugging-scilab-6</a>, but the page fails to explain how to run the code in debug mode.
  The exec command only produces a complaint about a missing variable (the file or function name, e.g. DrawCircle) and the run command causes either the same or the program to freeze.</p>
  <p>Is there a way to go through a script step by step from a breakpoint and if so, how ?</p>
  <p>EDIT 8/5/21 :</p>
  <p>Serge Steef explained how to run a program under the debugger. (Why isn't that explained in the help?)</p>
  <p>How can I step through the program one line at a time ? If I set a breakpoint and then run the program under the debugger, Scilab freezes. There is a blue spinning circle for a mouse pointer, but no prompt. Then what ?</p>
  <p>EDIT 22/5/21 :</p>
  <p>Apparently that behaviour is a bug reported in march 2020 : <a href="https://bugzilla.scilab.org/show_bug.cgi?id=16363" rel="nofollow noreferrer">https://bugzilla.scilab.org/show_bug.cgi?id=16363</a>
  I wonder what 'Status: RESOLVED FIXED' means.
  It seems to take a long time to fix that bug, or maybe it was fixed and then reintroduced.</p>