Thanks for the info guys.
Yes, I am already developing on Linux (I am a long time linux user, I haven't touched Windows since win98). I'll start launching Gimp from the terminal and watching for output there
On Apr 4, 2012 9:01 AM, "Ragnar Brynjúlfsson" <ragtag@xxxxxxxxxx> wrote:
I'm assuming Jon is working on Windows. On Linux you can just start
gimp from a terminal and get all the output you need, but when I was
porting a plug-in I wrote to Windows, there was no info in the command
line, and I had to resort to printing stuff to the gimp error console.
Anyone know how to do this on windows.
One solution is, of course, to just install Linux (on a physical or
virtual machine) and do the development on that.
Ragnar
On Wed, Apr 4, 2012 at 2:53 PM, Joao S. O. Bueno <gwidion@xxxxxxxxxx> wrote:
> On 3 April 2012 08:01, Jon Decker <jondecker76@xxxxxxxxx> wrote:
>> Hello
>>
>> I have a lot of work into my first large plugin. One thing that really
>> slows my progress is the lack of any kind of debugging or work flow. For
>> example, if I make a syntax error, the plugin will just silently fail, or
>> fail to appear in the menu. I receive no erros or hints as to where the
>> error occured. I normally have to commentoput code line-by-line and rerun
>> the plugin until I find the offending line of code. I've wasted hours at a
>> time finding small little bugs like this.
>
> to detect syntax errors, just try to run your plug-ina s a normal
> Python program -
> Syntax errors will be flagged normally - i the program is well formed,
> it will fail with an import error
> when trying to import gimp or gimpfu
>
> As fro runtime erros, just watch the normal error output of GIMP on
> the terminal.
> (the good news is taht for fixing these errors, you just have to
> re-run the plugin from inside GIMP<
> no need to reinstall or relaod anything).
>
> js
> -><-
>
>
>>
>> Is there a way to have gimp relay python errors?
>>
>> I have also noticed that the python plugins will not run outside of gimp
>> with the standard python interpreter (can't find the gimp imports).
>>
>> Is there something I'm missing? Is this the workflow that everybody uses?
>> Any hints or tips?
>>
>>
>> thanks!
>>
>> _______________________________________________
>> gimp-developer-list mailing list
>> gimp-developer-list@xxxxxxxxx
>> http://mail.gnome.org/mailman/listinfo/gimp-developer-list
>>
> _______________________________________________
> gimp-developer-list mailing list
> gimp-developer-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gimp-developer-list
_______________________________________________ gimp-developer-list mailing list gimp-developer-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gimp-developer-list