Note that there are some explanatory texts on larger screens.

plurals
  1. POWriting gimp plugins in python on windows- how do i debug? where is the output?
    primarykey
    data
    text
    <p>EDITED HEAVILY with some new information (and a bounty)</p> <p>I am trying to create a plug in in python for gimp. (on windows) this page <a href="http://gimpbook.com/scripting/notes.html" rel="nofollow noreferrer">http://gimpbook.com/scripting/notes.html</a> suggests running it from the shell, or looking at ~/.xsession-errors</p> <p>neither work. I am able to run it from the cmd shell, as </p> <blockquote> <p>gimp-2.8.exe -c --verbose ## (as suggested by <a href="http://gimpchat.com/viewtopic.php?f=9&amp;t=751" rel="nofollow noreferrer">http://gimpchat.com/viewtopic.php?f=9&amp;t=751</a> )</p> </blockquote> <p>this causes the output from "pdb.gimp_message(...)" to go to a terminal. </p> <p>BUT !!! this only works when everything is running as expected , i get no output on crashes. </p> <p>i've tried print statements, they go nowhere. </p> <p>this other guy had a similar problem , but the discussion got sidetracked. <a href="https://stackoverflow.com/questions/18969820/plugins-usually-dont-work-how-do-i-debug">Plugins usually don&#39;t work, how do I debug?</a></p> <hr> <p>in some places i saw recommendations to run it from within the python-fu console.</p> <p>this gets me nowhere. i need to comment out import gimpfu, as it raises errors, and i don't get gtk working. </p> <hr> <p>my current problem is that even if the plugin registers and shows on the menu, when there is some error and it does not behave as expected, i don't know where to start looking for hints . (i've tried clicking in all sorts of contexts, w - w/o selection, with w/o image. )</p> <p>I was able to copy , and execute example plugins from <a href="http://gimpbook.com/scripting/" rel="nofollow noreferrer">http://gimpbook.com/scripting/</a> and i got the, working, but when a change i make breaks something, i know not what, and morphing an existing program line by line is tedious .(gimp has to be shut down and restared each time) </p> <hr> <p>so to sum up - </p> <p>1- can i refresh a plugin without restarting gimp ? (so at least my slow-morph will be faster )</p> <p>2- can i run plug-ins from the python-fu shell. (as opposed to just importing them to make sure they parse.)</p> <p>3- is there an error-log i am missing, or something to that effect? </p> <p>4- is there a way to run gimp on windows from a shell to see output ? (am i better off under cygwin (or virtualbox.. ))?</p> <p>5- i haven't yet looked up how to connect winpdb to an existing process. how would i go about connecting it to a python process that runs inside gimp? </p> <p>thanks </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload