2024-09-26 18:18:14 发布
网友
我使用pyenv中安装的python3.6.1。我在代码上运行gdb有问题。当我运行gdb --args python mycode.py时,它以错误"/home/vydra/.pyenv/shims/python": not in executable format: File format not recognized结束
gdb --args python mycode.py
"/home/vydra/.pyenv/shims/python": not in executable format: File format not recognized
正如Jean-fraçois Fabre建议的那样,pyenv安装的python文件实际上是一个bash脚本。您可以使用以下命令轻松地让gdb运行此脚本:
gdb -ex r args bash python mycode.py
其他方法请参见此问题:Use GDB to debug a C++ program called from a shell script
正如Jean-fraçois Fabre建议的那样,pyenv安装的python文件实际上是一个bash脚本。您可以使用以下命令轻松地让gdb运行此脚本:
其他方法请参见此问题:Use GDB to debug a C++ program called from a shell script
相关问题 更多 >
编程相关推荐