我想调试我的Cython代码,并按照这里描述的确切步骤.我的Cython代码编译($ cython --gdb xxx.pyx
然后$ python setup.py build_ext --inplace
)但似乎cygdb
在我的系统上无法正常工作.我使用的是Ubuntu 14.04,Python 2.7.6,Cython 0.23.4.我也尝试过另一个系统(Ubuntu 15.04),但也没有运气.也没有重新安装Cython工作.
$ python -c 'import Cython'
适用于我的系统,我相信这表明Cython已正确安装.
我用Google搜索,但找不到解决方案.如果有什么我错过了,请指出.
$ cygdb .
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for …
Run Code Online (Sandbox Code Playgroud)