Hello everyone (it's my first post here).
Sorry, but i don't speak russian.
What I would like to know is if there is a way to debug python scripts with step by step execution, breakpoints and similar stuff. The bliss point would be to be able to use some external IDE like PyDev or Python Tools for Visual Studio.
Thank you very much.
Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
Python debug
Re: Python debug
Hello Boydon
http://wiki.xbmc.org/index.php?title=HO ... th_Eclipse - this is an example of remote debugging python plugins for XBMC(Music player). Same techniques can work with Stealth
http://wiki.xbmc.org/index.php?title=HO ... th_Eclipse - this is an example of remote debugging python plugins for XBMC(Music player). Same techniques can work with Stealth
Новый стелс лежит тут. Стелс это произведение искусства!
Re: Python debug
Thank you Alex, I will try.Alex wrote:Hello Boydon
http://wiki.xbmc.org/index.php?title=HO ... th_Eclipse - this is an example of remote debugging python plugins for XBMC(Music player). Same techniques can work with Stealth
Re: Python debug
After various attempt the best solution I've found is to copy the pysrc folder somewhere in you stealth script, refernce it in you script and then use the remote dubugger. Is there any better alternative?
Also: is there a way do directly develop script in Pydev taking advantage of the auto-complete features?
Thank you very much.
Also: is there a way do directly develop script in Pydev taking advantage of the auto-complete features?
Thank you very much.
Re: Python debug
you can use this http://docs.python.org/library/sys.html#sys.path to set any location for pysrc moduleBoydon wrote:After various attempt the best solution I've found is to copy the pysrc folder somewhere in you stealth script, refernce it in you script and then use the remote dubugger. Is there any better alternative?
also sys.path can be updated from windows environment variables http://docs.python.org/using/windows.ht ... -variables
yes its possible. to make that happen we need a module named stealth and containing empty definitions of all functions. i need to make itBoydon wrote: Also: is there a way do directly develop script in Pydev taking advantage of the auto-complete features?
Новый стелс лежит тут. Стелс это произведение искусства!
Re: Python debug
I used sys.path.append("/my/path/to/pysrc")Alex wrote: you can use this http://docs.python.org/library/sys.html#sys.path to set any location for pysrc module
also sys.path can be updated from windows environment variables http://docs.python.org/using/windows.ht ... -variables
I used a copy cause the standard one is missing the _init__.py Anyway I plan to make a short How-to for other people to use (as soon as I find sometime).
Good point.Alex wrote: yes its possible. to make that happen we need a module named stealth and containing empty definitions of all functions. i need to make it
Re: Python debug
if you are using windows try \Boydon wrote: I used sys.path.append("/my/path/to/pysrc")
Новый стелс лежит тут. Стелс это произведение искусства!
Re: Python debug
It was a sample, forgive my professional bias.Alex wrote: if you are using windows try \
What I am really using (without any problem of sort) is "\\".