-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
plugin: debuggingrelated to the debugging builtin pluginrelated to the debugging builtin plugintype: regressionindicates a problem that was introduced in a release which was working previouslyindicates a problem that was introduced in a release which was working previously
Description
In my code I'm trying to define my own debugger class, which in this case is a bit of a hack to use ipdb
I have a file with:
class Debugger(object):
quitting = None
def set_trace(self, frame):
import ipdb # noqa
return ipdb.set_trace(frame) # noqa
def reset(self, *args, **kwargs):
from ipdb.__main__ import _init_pdb
pdb_obj = _init_pdb()
pdb_obj.botframe = None # not sure. exception otherwise at quit
return pdb_obj.reset(*args, **kwargs)
def interaction(self, *args, **kwargs):
from ipdb.__main__ import _init_pdb
pdb_obj = _init_pdb()
pdb_obj.botframe = None # not sure. exception otherwise at quit
return pdb_obj.interaction(*args, **kwargs)
The code is now unable to import any class in my codebase at that step. I just get No module name X
for every module in my local repository.
Metadata
Metadata
Assignees
Labels
plugin: debuggingrelated to the debugging builtin pluginrelated to the debugging builtin plugintype: regressionindicates a problem that was introduced in a release which was working previouslyindicates a problem that was introduced in a release which was working previously