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

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
2012-08-05
Last reply:
2012-09-03
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")
        try:
           #<<< your code here >>>
        except:
           traceback.print_exc(file=err_file)
        finally:
            err_file.close()

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.