我试图用来gdb
调试一个包含用 C++ 编写的模块的程序。我下载了gdb
使用自制软件的最新版本。
我尝试运行以下命令:
(gdb) run Pyrh_test.py
但是,我收到以下错误:
Starting program: Pyrh_test.py
No executable file specified.
Use the "file" or "exec-file" command.
然后我尝试使用如下的“文件”和“执行文件”命令(还包括输出):
(gdb) file Pyrh_test.py
"/Users/danielribeiro/opt/Python/Spyder/Pyrh_test.py": not in executable format: file format not recognized
(gdb) exec-file Pyrh_test.py
"/Users/danielribeiro/opt/Python/Spyder/Pyrh_test.py": not in executable format: file format not recognized
我该如何使用gdb
来运行Pyrh_test.py
?