How to debug a Sikuli script?

Asked by Saravanan Periyasamy

Hi. I am new to this project. I have few lines of code. Can any one help me to command particular line (dont want to execute) or how can I run step by step execution to debug.

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
RaiMan (raimund-hocke) said :
#1

Sikuli IDE does not have any debugging feature. If you want your script to be executed, you have to run it.

So if you want to get some debugging information you have to use print.

If you want some lines not to be executed on run, you have to comment them.

You might use exit() to stop after some code is processed or if some condition is met.

It might be helpful, to read through http://sikuli.org/docx/region.html#exception-findfailed, since there is an interactive option, if images are not found.

When starting to develop a workflow, it might be helpful to use Region.highlight(), to visualize the found matches and use "Run in Slow Motion", to see where your script hovers and clicks.

If you want a real debugger, you have to run your scripts either in Netbeans or Eclipse (see faq 1436).

Can you help with this problem?

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

To post a message you must log in.