← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #152676]: How to command a line code or give a checkpoint

 

Question #152676 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/152676

    Status: Open => Answered

RaiMan proposed the following answer:
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).

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.