How could i debug python file inkscape ?

Asked by pareshchaudhary

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:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

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

Revision history for this message
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()

Revision history for this message
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.