[Eric] Tutorial needed: "How to import/debug existing Python programs"

Detlev Offenbach detlev at die-offenbachs.de
Mon Jun 9 18:28:08 BST 2008


On Montag, 9. Juni 2008, Fritz Katz wrote:
> Hello,
>
>    I'm looking for a tutorial on "How to import/debug existing Python
> programs in Eric".  (I'm new to Python and Eric so please be gentle).
>
>   Here's what I've done so far:
>
>   1) Create a new project: "Project -> New"
>
>   2) 'Project -> Add Directory...' to recurse through the directories
> containing the Python files and add them to the project.
>
>   3) Enable a breakpoint near the beginning of 'class MainWindow()'.
>
>   However, both the 'Start' and the 'Debug' menu is completely grey'd out
> and I can't select any items -- so I can't start the process or step
> through the program.
>
>   Does the program need to be re-compiled or some flags need to be added to
> the Makefile to enable debugging? ____________
>
>   Seems like this would be good place for such a tutorial:
>
>    http://ericide.python-hosting.com/wiki/Doc/Tutorials
>
>  ... too bad it's not there yet. If we succeed in figuring out how to do
> it, perhaps we can add it to the Wiki.
>

You should tell the project, which file is the main script (s. 
Project->Properties...).

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list