是否可以调试包含 XS 部分的 Perl 以查看程序流程?

Is it possible to debug Perl that contains XS sections to see the program flow?

我有一个用 Perl 编写的项目,其中包含用 C++ 编写的 XS 组件。我正在使用

之类的命令进行调试
perl -d perl_file.pl

如何使用调试器从 Perl 跳转到那些 C++ 文件?

您可以使用 GNU 项目调试器。

gdb /usr/bin/perl
    r perl_file.pl

查看 perlhacktips:

另见: