Script Debug and Batch Execution
Script Debug and Batch Execution
org
DOWNLOAD
DEBUG.SCI (SCI)
SCILAB language is often used to drive huge experiments/simulations along with complex computations in batch mode. But to do
so, you have to ensure your script is not crashing at every line. In this tutorial we will see together some handy functions for fast
script debugging as well utilities to run your scripts/functions in batch mode in Linux or Windows command line.
The script used in this tutorial is available for download using the above button.
And let's imagine a second function, leveraging the rst one, which should conclude with the fact that, eventually the team you
belong to does not really matter since you are Groot
And here you see what could be going wrong. Not that you are sharing your life with a talking raccoon, but the in nite loop! So
let's try a rst case
https://www.scilab.org/script-debug-and-batch-execution 1/4
7/29/2019 Script debug and batch execution | www.scilab.org
If you run your script that way, you will see that your script is never stopping. You got some good hints about where the scripts
might fail and would like to check the value of the di erent involved variables at those stage. You will therefore set pause element
(uncomment in provided code) and execute your code again. In your SCILAB console you will then see the -1-> which means that
you reach a pause set.
Locate the reached pause set in your code using whereami function. We can for example check that the rst one has been
reached under line 3 of function myFunc2 and line 14 of myFunc1.
Unfold code execution with resume function
Access involved variable values within a pause. In this example, we are checking the value of e variable to check for an
eventual in nite loop.
Stop code execution using abort function. In this case e was TRUE which means that the loop was indeed in nite.
https://www.scilab.org/script-debug-and-batch-execution 2/4
7/29/2019 Script debug and batch execution | www.scilab.org
Sitemap
Download
Tutorials
Industries
Technology
Services
Software
Cloud
About
GET IN TOUCH
WORK WITH US
Email: [email protected]
Web: http://scilab.io/company/careers/
https://www.scilab.org/script-debug-and-batch-execution 3/4
7/29/2019 Script debug and batch execution | www.scilab.org
Tweets by @Scilab
Scilab Retweeted
Boost 4.0
@boost4_0
Today in Portugal at our #GA meeting #boost40. More news from our pilots in the next newsletter, don’t miss it.
@IMetrology_ES @FillGurten @BENTELER_Group @vwportugal @gestamp_es
https://www.scilab.org/script-debug-and-batch-execution 4/4