ddd on OpenSuse 11.2

Hi

I am trying to debug a perl script with the ddd debugger. When I open the script from ddd I get:


DB<> R
Warning: some settings and command-line options may be lost!
Can’t call method “Features” on an undefined value at /usr/lib/perl5/5.10.0/perl5db.pl line 6882.
Compilation failed in require.
at -e line 0
main::BEGIN() called at /usr/lib/perl5/5.10.0/perl5db.pl line 0
eval {…} called at /usr/lib/perl5/5.10.0/perl5db.pl line 0
BEGIN failed–compilation aborted.
at -e line 0
Debugged program terminated. Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.
DB<>


I have used the ddd installation off the DVD & the test script is running fine stand alone.

The perl script is:

#!/usr/bin/perl

print "hello there!
"


Any help is much appreciated!

Oddvard

Are you sure ddd would work with any perl script? Usually it is a graphical frontend for the commandline gdb, so restricted to (compiled with debugging option) C or C++ programs.

I think you need a perl debugger.

Martin

Perl has its debugger just run the program with -d. See man perldebug.

Perl is an interpreted language. If you run ddd on Perl, you are viewing things at the C statement level which is the language Perl is written in. You want to view things at the Perl statement level.