Run Script with Debug from Command Line

Asked by Jeff_Vallis on 2020-01-05

I have found in Documentation
 -d 3 or -v sets the debug level
First what is the difference

second how do I use it
My Script without debug which just give prints and basic commands to standard output is

export Run_Sikuli="java -jar /Users/Jeff/Documents/SikuliX/Sikulix-Current.jar"
export My_Location=/Users/Jeff/Documents/Sikuli_Live/SikuliScripts/Vikings
export Run_Main=$My_Location/Code/Vikings_Main.sikuli
export Run_This=$Run_Sikuli" -r "$Run_Main
echo $Run_This

#If I wand to capture the standard output I add
export My_Output=" > "$My_Location/Reports/Staandard_Output.txt
export Run_This_Full=$Run_Sikuli" -r "$Run_Main$My_Output
echo $Run_This_Full

where do I add the d -3 or the -v

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2020-01-05
Last reply:
2020-01-05
RaiMan (raimund-hocke) said : #1

-v means verbose and is the only option to get debug output beginning with the initial startup of SikuliX if run from commandline.
It is only meant for SikuliX system debugging and does not mean anything for a running script.

To get debug output during script run still the parameters and settings according to the docs are valid.

Those runtime parameters defined for the commandline have to be inserted between ...jar and -r, hence in your case e.g.
export Run_This_Full=$Run_Sikuli" -v -r "$Run_Main$My_Output

Can you help with this problem?

Provide an answer of your own, or ask Jeff_Vallis for more information if necessary.

To post a message you must log in.