How do I connect the Eclipse debugger to a python program starting with a script?

I am using Pydev. I want to debug a python program that starts with a bash script named runanki

that looks something like this:

#!/usr/bin/env python
import sys
sys.path.insert(0, "/usr/share/anki")
import aqt
aqt.run()

      

When I tried to debug the program, Eclipse seemed to be looking for a method main

which was useless of course. So how can I tell Eclipse that it can start the program by executing runanki

?

enter image description here

+3


source to share





All Articles