This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Debugger does not understand packages (PR#283)
Type: enhancement Stage:
Components: Library (Lib) Versions:
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum
Priority: low Keywords:

Created on 2000-07-31 21:09 by anonymous, last changed 2022-04-10 16:02 by admin. This issue is now closed.

Messages (2)
msg168 - (view) Author: Nobody/Anonymous (nobody) Date: 2000-07-31 21:09
Jitterbug-Id: 283
Date: Mon, 10 Apr 2000 12:30:44 -0400 (EDT)
Version: 1.5.2
OS: Win32

The python debugger (both Idle and PythonWin) does not undertand packages.  Can
run scripts from the command line that cannot be run in the debugger...

Create package 'Test' in the directory "My Modules", add an (empty)
to the directory "My modules\Test", create file with the

class TheTest:
   def __init__(self):
      self.i = 1

   def go(self):
      return self.i

Add the path to the Python path with the following file (test.reg)...


@="C:\\My modules"

then try the following at the python prompt:

import Test.testfile
j = Test.testfile.TheTest() 
k = j.go

runs fine right? Yes it does, now step through it in the debugger and you

import Test.testfile
j = Test.testfile.TheTest() #exception: attribute 'TheTest'
k = j.go

Does not appear to be realted to the class (you can change it to a 'function in
a module' instead of a 'method in a class in a module' and you get the a similar

Debugger does not understand packages.

Audit trail:
Tue Jul 11 08:29:15 2000	guido	moved from incoming to open
msg169 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2000-12-12 20:49
I've added this feature request to PEP 42.
Date User Action Args
2022-04-10 16:02:09adminsetgithub: 32702
2000-07-31 21:09:10anonymouscreate