Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=6225581
By: ben_cullen
Hello
I'm trying to use PyDev 1.4.2 with Jython 2.2.1. I can launch a debug session,
and stop on break points. The problem is that I can't see any variables. Instead
I get a pydev ERROR - Could not resolve variable.
The error log showed the issue to be the line arrowed below in pydevd_comm.py:
class InternalGetVariable(InternalThreadCommand):
""" gets the value of a variable """
def __init__(self, seq, thread_id, frame_id, scope, attrs):
self.sequence = seq
self.thread_id = thread_id
self.frame_id = frame_id
self.scope = scope
self.attributes = attrs
def doIt(self, dbg):
""" Converts request into python variable """
try:
xml = "<xml>"
valDict = pydevd_vars.resolveCompoundVariable(self.thread_id,
self.frame_id, self.scope, self.attributes)
#>>>>>>>> keys = sorted(valDict.keys())
keys = valDict.keys()
for k in keys:
xml += pydevd_vars.varToXML(valDict[k], str(k))
xml += "</xml>"
cmd = dbg.cmdFactory.makeGetVariableMessage(self.sequence, xml)
dbg.writer.addCommand(cmd)
except Exception:
cmd = dbg.cmdFactory.makeErrorMessage(self.sequence, "Error
resolving
variables " + GetExceptionTracebackStr())
dbg.writer.addCommand(cmd)
I commented out the line. Now I can see top level globals, however I still have
the same issue for other variables and if I drill inside globals. The error
log tells an unhappy story:
!ENTRY org.python.pydev.debug 4 4 2009-01-23 12:44:02.616
!MESSAGE Error fetching a variable
!STACK 1
org.eclipse.core.runtime.CoreException: pydevd error:Error resolving variables
Traceback (most recent call last):
File "D:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.2\
pysrc\pydevd_comm.py", line 562, in doIt
valDict = pydevd_vars.resolveCompoundVariable(self.thread_id, self.frame_id,
self.scope, self.attributes)
File "D:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.2\
pysrc\pydevd_vars.py", line 290, in resolveCompoundVariable
var = resolver.resolve(var, k)
File "D:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.2\
pysrc\pydevd_resolver.py", line 222, in resolve
raise UnableToResolveVariableException()
UnableToResolveVariableException
at
org.python.pydev.debug.model.remote.GetVariableCommand.getResponse(GetVariab
leCommand.java:61)
at
org.python.pydev.debug.model.PyVariableCollection.getCommandVariables(PyVari
ableCollection.java:86)
at
org.python.pydev.debug.model.PyVariableCollection.getCommandVariables(PyVari
ableCollection.java:77)
at
org.python.pydev.debug.model.PyVariableCollection.commandComplete(PyVariable
Collection.java:68)
at
org.python.pydev.debug.model.remote.AbstractDebuggerCommand.processResponse(
AbstractDebuggerCommand.java:114)
at
org.python.pydev.debug.model.remote.DebuggerReader.processCommand(DebuggerRe
ader.java:112)
at
org.python.pydev.debug.model.remote.DebuggerReader.run(DebuggerReader.java:1
31)
at java.lang.Thread.run(Unknown Source)
!SUBENTRY 1 org.python.pydev.debug 4 4 2009-01-23 12:44:02.616
!MESSAGE pydevd error:Error resolving variables Traceback (most recent call
last):
File "D:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.2\
pysrc\pydevd_comm.py", line 562, in doIt
valDict = pydevd_vars.resolveCompoundVariable(self.thread_id, self.frame_id,
self.scope, self.attributes)
File "D:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.2\
pysrc\pydevd_vars.py", line 290, in resolveCompoundVariable
var = resolver.resolve(var, k)
File "D:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.2\
pysrc\pydevd_resolver.py", line 222, in resolve
raise UnableToResolveVariableException()
UnableToResolveVariableException
Could you give me some pointers to sort this out? Is this configuration
correct/supported? Anyone else have/had this issue?
Cheers, Ben
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users