trace loops

Asked by Richi

Hello,

actually i wanted to know if we can trace a loop with sikuli and also if we can a generate a log file when the loop has crashed.

I explain:

suppose i have a script that i want to loop 3 times.

i want to know which code lines can i add in my script in order that:

1) a log file is generated

2) a trace is left when a crash occurs at certain number of iterations

thanx

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Hi,

You have couple options here:

1. Sikuli will provide some output in your command line when it runs so some things can be visible from there.
2. You always can just print some data to the screen ti get an idea of what and where is failing.
3. You can also use Python built-in "logging" module. You can find more information about it here:
https://docs.python.org/2/howto/logging.html

Cheers,
Eugene

Can you help with this problem?

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

To post a message you must log in.