If I edit two modules, eggs and ham, and module eggs imports ham, how do I run module eggs such that IDLE stops at breakpoints set in ham? So far, I have only been able to get IDLE to recognize breakpoints set in the module actually being run, not those being imported.
views:
38answers:
1
+1
Q:
In the python IDLE IDE, how do I set a breakpoint in a module other than the one I am running?
+1
A:
- start IDLE
- open eggs, open ham
- set desired breakpoints in both files
- go to IDLE's shell, select Debug=>Debugger
- go back to eggs and to run.
You should stop at break points in each file. (It works, I just tested it.)
Steven Rumbalski
2010-07-21 15:42:27
Yep, it works for me now too. A few hours ago, it didn't... I must not have been doing what I thought I was doing.
Eric Neilsen
2010-07-21 18:04:41