IDE: Can you run a script from specific line number ? --- no, use def()s or separate scripts with/without import

Asked by kwame

Hello!

I'm creating a script that checks elements on a number of webpages. While developing this script, I'd like to be able to run Sikuli from a specific line number to verify my work, as opposed to running it from the beginning of the script.

I don't see any option to do this on the frontend in the app.

My script is checking a number of pages. If I'm currently scripting on page #3, I'd like to run the script from the line number for page 3 to check my work and so on.

Is this possible?

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

Sorry, not possible yet.

... but if your script consists of chunks of code, that might be run separately, either use def()s to make a chunk callable (might even be controlled by commandline parameters) or separate into different scripts, that can be run in a specific row using the technique:
http://sikulix-2014.readthedocs.io/en/latest/scripting.html#running-scripts-and-snippets-from-within-other-scripts-and-run-scripts-one-after-the-other

Can you help with this problem?

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

To post a message you must log in.