Menu

Breakpoint ignored using exec(open())

2009-08-03
2013-03-15
  • Alexandre Parenteau

    Hi,

    I could find answers to my problem anywhere.

    1. I have 2 source python code bases, which differ a bit in time.
    2. I'm using pydev 1.4.7.2843, Eclipse 3.4.2 (Windows)
    3. In one pydev project I can put breakpoint in .mp files (a custom extension used internally), and .py files
    4. In the second project, breakpoints in .mp files are getting *ignored*, while breakpoint in .py files are still working.
    5. The .mp files are executed from a .py file, using something like this :
         exec(open("/full/path/foo.mp")) in globals()

    I looked in the error log and could not find any indication why the breakpoint in .mp files is getting ignored. I could not figure why the projects behave differently. AFAIK, only the source code differs, but PyDev/Eclipse are the same.

    Could you please help me diagnose the problem?

    Thanks!
    alex

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-08-03

      Do you think you can you create a bug report and attach a sample project with steps for me to reproduce the problem?

      Cheers,

      Fabio

       
    • Alexandre Parenteau

      My bad. It all works. Sorry for the noise.

      My opportunity to say out loud: I loooove PyDev!

      alex

       
MongoDB Logo MongoDB