Hi
I have been playing with Cython gdb on Windows and finding it far from
straightforward, as is often the case with *nix centric software. So here are
my experiences, and I wonder if anyone else has had better or at least
different experiences.
The only gdb I was able to find with Python support is the one with Mingw/MSys.
I had tried to build my own, but with no success as far as python support is
concerned. I may revisit this at some point.
The first problem I encountered upon running cygdb.py was, predictably, a
posix-vs-windows path issue. I was able to kludge around this by hacking
cygdb.py:
import posixpath
#...
pattern = posixpath.join(path_to_debug_info,
'cython_debug/cython_debug_info_*')
debug_files = glob.glob(pattern)
new_debug_files=[]
for df in debug_files:
new_debug_files.append(string.replace(df, "\\", "/"))
debug_files = new_debug_files
if not debug_files:
usage()
sys.exit('No debug files were found in %s. Aborting.' % (
os.path.abspath(path_to_debug_info)))
otherwise cygdb tries to load e.g. .cython_debugcython_debug_info_mymodule as
all the backslashes have vanished.
The next problem was with the xml parser. I found I had to manually add
from xml.parsers import expat
cygdb now goes through the motions of working, although I am against another
brick wall now in that my modules and python installation are all 64 bit,
whereas mingw/msys is 32 bit. This isn't cygdb's fault though...
I hope some of this is useful. I've not yet got a useable cygdb, but hopefully
am getting there.
Paul
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev