sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32830
Re: [Question #267768]: IDE needs to be able to rerun the last line
Question #267768 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267768
Status: Open => Answered
RaiMan proposed the following answer:
at 1)
see docs: http://sikulix-2014.readthedocs.org/en/latest/scripting.html#importing-other-sikuli-scripts-reuse-code-and-images
No need to restart the IDE, when imported scripts are changed.
at 2)
If you want to skip parts of your code on rerun, then you should simply organize it like this for example:
- steps run sequentially:
startWith = 0
if startwith < 1:
# run code for step 0
if startwith < 2:
# run code for step 1
if startwith < 3:
# run code for step 2
…. and so on
so on rerun you decide to skip steps 0 and 1, you simply have to change the line
startWith = 2
There are many other possibilities to organize your code into steps and modules/functions.
Another option is to use the unit test feature.
No need to fiddle around with comment/uncomment.
For debugging purposes the SikuliX IDE is not useable anyway. If you
need that, you have to use an IDE like Eclipse with plugin PyDev.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.