How could i debug python file inkscape ?

Asked by pareshchaudhary on 2012-08-05

I am using eclipse in linux for inkscape. but i do not know how to debug extension python file.

Anybody know ?

Question information

English Edit question
Inkscape Edit question
No assignee Edit question
Last query:
Last reply:
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Filip Dominec (fdominec) said : #2

Hi, I solved this question saving the traceback output to a file. It is a bit stupid, but it works.

import traceback

#<<< some code >>>

    def effect(self):
        err_file = open("/tmp/inkscape_error_output.txt" , "w")
           #<<< your code here >>>

jazzynico (jazzynico) said : #3

Note that most Inkscape extensions can be launched as command line python scripts (providing you give it the correct number and type of arguments). Then you get the output messages directly in the console.

Can you help with this problem?

Provide an answer of your own, or ask pareshchaudhary for more information if necessary.

To post a message you must log in.