← Back to team overview

kicad-developers team mailing list archive

Re: Packaging the python footprint wizards for the release

 

On 28 September 2015 at 22:10, Bernhard Stegmaier
<stegmaier@xxxxxxxxxxxxx> wrote:
> And maybe a dumb question, but… how do I get some debugging output from kicadplugins.i?
> Will a simple Python print() show something? Where?
>
> Regards,
> Bernhard

See the comments about stdout not being open for python:
https://github.com/KiCad/kicad-source-mirror/blob/master/scripting/kicadplugins.i#L43

Just open a new file to direct stdout to temporarily while you're
debugging/testing:
http://stackoverflow.com/questions/4675728/redirect-stdout-to-a-file-in-python#answer-4675744

Best Regards,

Brian.


Follow ups

References