views:

18

answers:

0

if I run this...

import ipdb
print 'a'
ipdb.set_trace()
print 'b'

and then type 'q' to quit I get a 300 line error message.

python 2.5.4 on windows.

> d:\python25\scripts\a.py(4)<module>()
  2 print 'a'
  3 ipdb.set_trace()
----> 4 print 'b'

ipdb> q
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (136, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
    The error message is: ('EOF in multi-line statement', (117, 0))

---------------------------------------------------------------------------
BdbQuit                                Python 2.5.4: d:\python25\python.exe
                                                   Sun Aug 01 12:27:20 2010
A problem occured executing Python code.  Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.

D:\Python25\Scripts\a.py in <module>()
  1
  2
  3
----> 4
  5
  6
  7
  8
  9
 10
 11
 12
 13 import ipdb
 14 print 'a'
 15 ipdb.set_trace()
 16 print 'b'
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31

D:\Python25\Scripts\a.py in <module>()
  1
  2
  3
----> 4
  5
  6
  7
  8
  9
 10
 11
 12
 13 import ipdb
 14 print 'a'
 15 ipdb.set_trace()
 16 print 'b'
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31

d:\python25\lib\bdb.pyc in trace_dispatch(self=<IPython.Debugger.Pdb instance at 0x00AAEFD
0>, frame=<frame object at 0x00B04E90>, event='line', arg=None)
 33             self.fncache[filename] = canonic
 34         return canonic
 35
 36     def reset(self):
 37         import linecache
 38         linecache.checkcache()
 39         self.botframe = None
 40         self.stopframe = None
 41         self.returnframe = None
 42         self.quitting = 0
 43
 44     def trace_dispatch(self, frame, event, arg):
 45         if self.quitting:
 46             return # None
 47         if event == 'line':
---> 48             return self.dispatch_line(frame)
    global that = undefined
    global we = undefined
    global ever = undefined
    global need = undefined
    global to = undefined
    global stop = undefined
    global this = undefined
    global function.N = undefined
    global R = undefined
    global t = undefined
    global argument_list = undefined
    global s = undefined
    global d = undefined
    global python25 = undefined
    global lib = undefined
    global bdb.pyR0 = undefined
    global c = undefined
    global C = undefined
    global S = undefined
    global s9 = undefined
    global This = undefined
    global method = undefined
    global called = undefined
    global when = undefined
    global at = undefined
    global line.N = undefined
    global bdb.pyR = undefined
    global s5 = undefined
    global a = undefined