Perl дебагер не работает

Автор Dexel, 16 марта 2014, 07:21:37

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Dexel

Здравствуйте.

$ perl -d script.pl
Отваливается на удалении точки останова.


  DB<2> d 7
Number found where operator expected at (eval 6)[/usr/share/perl/5.14/perl5db.pl:640] line 2, near "d 7"
at (eval 6)[/usr/share/perl/5.14/perl5db.pl:640] line 2
        eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main; $^D = $^D | $DB::db_stop;
d 7;

;' called at /usr/share/perl/5.14/perl5db.pl line 640
        DB::eval called at /usr/share/perl/5.14/perl5db.pl line 3436
        DB::DB called at script.pl line 7
        (Do you need to predeclare d?)
at (eval 6)[/usr/share/perl/5.14/perl5db.pl:640] line 2
        eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main; $^D = $^D | $DB::db_stop;
d 7;

;' called at /usr/share/perl/5.14/perl5db.pl line 640
        DB::eval called at /usr/share/perl/5.14/perl5db.pl line 3436
        DB::DB called at script.pl line 7
syntax error at (eval 6)[/usr/share/perl/5.14/perl5db.pl:640] line 2, near "d 7"

  DB<3>


Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux