c++perldebuggingperl-xs

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


I have a project written in Perl with XS components written in C++. I am debugging with command like

perl -d perl_file.pl

How I can use the debugger to jump from Perl into those C++ files?


Solution

  • You could use GNU Project Debugger.

    gdb /usr/bin/perl
        r perl_file.pl
    

    See perlhacktips:

    Also see: