AttributeErrors upon pydevd.settrace
Brought to you by:
fabioz
The first time I attempt to settrace with pydevd there are bunch of AttributeError exceptions. If I invoke settrace a second time, the connection is successful
>>> import pydevd
>>> pydevd.settrace()
Traceback (most recent call last):
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 625, in processNetCommand
self.setTracingForUntracedContexts()
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 435, in setTracingForUntracedContexts
self.SetTraceForFrameAndParents(frame)
AttributeError: 'NoneType' object has no attribute 'startswith'
Traceback (most recent call last):
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 692, in processNetCommand
self.setTracingForUntracedContexts()
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 435, in setTracingForUntracedContexts
self.SetTraceForFrameAndParents(frame)
AttributeError: 'NoneType' object has no attribute 'startswith'
Traceback (most recent call last):
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd_frame.py", line 135, in trace_dispatch
self.doWaitSuspend(thread, frame, event, arg)
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd_frame.py", line 25, in doWaitSuspend
self._args[0].doWaitSuspend(*args, **kwargs)
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 832, in doWaitSuspend
self.processInternalCommands()
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 371, in processInternalCommands
self.writer.addCommand(self.cmdFactory.makeThreadCreatedMessage(t))
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd_comm.py", line 428, in makeThreadCreatedMessage
cmdText = "<xml>" + self.threadToXML(thread) + "</xml>"
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd_comm.py", line 417, in threadToXML
name = pydevd_vars.makeValidXmlValue(thread.getName())
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd_vars.py", line 125, in makeValidXmlValue
return escape(s, {'"':'"'})
File "/disk01/lib/python2.7/xml/sax/saxutils.py", line 39, in escape
data = data.replace("&", "&")
AttributeError: 'NoneType' object has no attribute 'replace'
Traceback (most recent call last):
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 963, in trace_dispatch
return additionalInfo.CreateDbFrame((self, filename, additionalInfo, t, frame)).trace_dispatch(frame, event, arg)
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd_frame.py", line 135, in trace_dispatch
self.doWaitSuspend(thread, frame, event, arg)
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd_frame.py", line 25, in doWaitSuspend
self._args[0].doWaitSuspend(*args, **kwargs)
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 832, in doWaitSuspend
self.processInternalCommands()
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 371, in processInternalCommands
self.writer.addCommand(self.cmdFactory.makeThreadCreatedMessage(t))
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd_comm.py", line 428, in makeThreadCreatedMessage
cmdText = "<xml>" + self.threadToXML(thread) + "</xml>"
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd_comm.py", line 417, in threadToXML
name = pydevd_vars.makeValidXmlValue(thread.getName())
File "/disk01/apps/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd_vars.py", line 125, in makeValidXmlValue
return escape(s, {'"':'"'})
File "/disk01/lib/python2.7/xml/sax/saxutils.py", line 39, in escape
data = data.replace("&", "&")
AttributeError: 'NoneType' object has no attribute 'replace'
Hi there, this tracker is disabled for now. I've started a funding (http://igg.me/at/liclipse) to keep supporting PyDev and if the funding works, I'll create a tracker where you should post issues like this (so, please buffer this request and add it to the new tracker when the funding goes through).