← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #253906]: debugging Sikuli in Pycharm

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
I just played around a little bit with PyCharm and 1.1.0-Beta4.

looks nice and promising.

some recommendations:
- according to the new structures and usages with 1.0.1+, you should not use sikuli-ide.jar/sikuli-script.jar (1.0.1) nor sikulix.jar (1.1.0+), since these jars contain a compete Jython, that might get in conflict with your local python.
instead use sikuli-java.jar (1.0.1) or sikulixapi.jar (1.1.0+)
According to the setup recommendations the jar should be in a user writable folder like c:\SikuliX

- I do not recommend the global system environment variable CLASSPATH,
but instead in the project configuration as additional Environment
variable.

I will add more convenience support to version 1.1.0 for the usage of
Eclipse/Pydev and PyCharm.

--- your question about debugging:
to debug a script, just load it into PyCharm, set at least one breakpoint (click left in the vertical bar left of the source) and trigger Debug run (shift-F9 or entry in Menu Run)
to add "command line" args use the project configuration (script parameters)

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