Debug does not start with "from n import *"

2006-08-23
2013-03-15
  • If I include a module with:
    "from TestModule import *"
    a subsequent debug run does not start debugging (i.e. the debugging perspective is not startet and breakpoints are not handled - but the code is executed correctly)

    If I use (with a proper execution of the function foobar) either
    "from TestModule import foobar"
    or
    "import TestModule"
    Debugging works fine

    (Eclipse 3.2.0, PyDev 1.2.2) - have I misunderstood something, or might this be a bug ?

     
    • Fabio Zadrozny
      Fabio Zadrozny
      2006-08-23

      Where do you put the breakpoint when that happens?

      Are you using it with python or jython?

       
      • I'm using Jython 2.1. I have tried to set the breakpoints all along a longer program - but the "error" appears in even a simple program such as this:

        in file TestModule.py:

        def foobar():
            print(1)

        in file HelloWorld.py

        from TestModule import *
        foobar() <-- A BREAK POINT HERE

        Thanks for the quick response :)

         
    • johnnyl
      johnnyl
      2006-08-23

      I'm having the same problem with an equally simple program since I can never get breakpoints to work when importing a file that isn't in the python library. I'm using the same version of pydev, eclipse, and jython.

      Seems the import * is what breaks it.

       
      • Fabio Zadrozny
        Fabio Zadrozny
        2006-08-24

        Can you report that as a bug?

        I'll try to check it for the next release.

        Cheers,

        Fabio