469,653 Members | 1,819 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,653 developers. It's quick & easy.

debugging - converting PyObject back to a variable name


I'm currently debugging a crash occurring in the Python interpreter.
I've got a Dictionary object in the form of a (PyObject *)

I can cast it to (dictobject *) in the debugger watch window, and I can
also use PyString_AsString(PyObject_Repr()) to get the debugger to
print out a string representation of the dictionary (actually I can't -
this also crashes, because one of the "values" in the dictionary has
become corrupted)

What I'm trying to do is relate this dictionary object back to a
variable name in my application source code (i.e. written in Python) -
I've been searching round the web for an easy way of doing this -
hopefully some function I can type into the debugger's watch window.

thanks alot for the help


Jul 19 '05 #1
0 1167

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Olivier Sessink | last post: by
2 posts views Thread by fotis | last post: by
1 post views Thread by Irritable Bowel Syndrome | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.