ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DDD startup errors (when launchind perl inferior debugger)


From: David Letcher
Subject: DDD startup errors (when launchind perl inferior debugger)
Date: Thu, 26 Aug 2004 13:07:52 +1000

Hi,

I am having troubles getting DDD to start and run the Perl debugger correctly.

 

The log file show me that it is setting various options incorrectly by using lowercase “o” and not upper case “O” .

 

I.e: o onaments   instead of

O ornaments

 

Etc.

 

It seems that DDD is confused as to which inferior debugger it is running.

 

When running I can set a breakpoint (i.e. b 2), but deleting a breakpoint runs the wrong command, (i.e: “B 2” instead of “d 2”)

 

The log I have is thus;

===================================================

 

GNU DDD 3.3.9 (sparc-sun-solaris2.8)

Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.

Copyright (C) 1999-2001 Universität Passau, Germany.

Copyright (C) 2001 Universität des Saarlandes, Germany.

Copyright (C) 2001-2004 Free Software Foundation, Inc.

 

Compiled with GCC 3.3.2

Requires X11R6, Xt11R6, Motif 2.1 (Motif Version 2.1.0)

Includes XPM 3.4.11, Athena Panner, App defaults, DDD core

Built 2004-08-17 by Super-User <unknown>.

$  ddd --perl test_perl.pl

+  /bin/sh -c 'exec perl -d '\''test_perl.pl'\'''

#  Hello, world!

#  Starting Perl...

#  Running Perl (pid 535, tty /dev/pts/212)...

#  Current language: Perl

#  Searching "vsllib/ddd.vsl"...

#  Trying "/users/david2le/.ddd/vsllib/ddd.vsl"

#  Trying "/usr/local/share/ddd-3.3.9/vsllib/ddd.vsl"

#  Searching "vsllib/ddd.vsl"..."/usr/local/share/ddd-3.3.9/vsllib/ddd.vsl".

2004.08.26 12:53:05

<- "Default die handler restored.\n"

   "\n"

   "Loading DB routines from perl5db.pl version 1.07\n"

   "Editor support available.\n"

   "\n"

   "Enter h or `h h\' for help, or `man perldebug\' for more help.\n"

   "\n"

   "main::(test_perl.pl:1):\tprint \"this is a perl test\";\n"

   "  DB<1> "

2004.08.26 12:53:05

-> "o ornaments=\"\"\n"

2004.08.26 12:53:05

-> "\n"

2004.08.26 12:53:05

<- "Can\'t locate object method \"o\" via package \"ornaments\" (perhaps you forgot to load \"ornaments\"?) at (eval 9)[/usr/local/lib/perl5/5.6.1/perl5db.pl:1521] line 2.\n"

   "\n"

   "  DB<2> \n"

   "  DB<2> "

2004.08.26 12:53:05

-> "$DB::emacs = 1\n"

2004.08.26 12:53:05

<- "\n"

2004.08.26 12:53:05

<- "  DB<3> "

2004.08.26 12:53:05

-> "o compactDump=\"\"\n"

2004.08.26 12:53:05

<- "Can\'t locate object method \"o\" via package \"compactDump\" (perhaps you forgot to load \"compactDump\"?) at (eval 12)[/usr/local/lib/perl5/5.6.1/perl5db.pl:1521] line 2.\n"

   "\n"

   "  DB<4> "

2004.08.26 12:53:05

-> "o veryCompact=\"\"\n"

2004.08.26 12:53:05

<- "Can\'t locate object method \"o\" via package \"veryCompact\" (perhaps you forgot to load \"veryCompact\"?) at (eval 13)[/usr/local/lib/perl5/5.6.1/perl5db.pl:1521] line 2.\n"

   "\n"

   "  DB<5> "

2004.08.26 12:53:05

-> "o inhibit_exit=0\n"

2004.08.26 12:53:05

<- "Can\'t locate object method \"o\" via package \"inhibit_exit\" (perhaps you forgot to load \"inhibit_exit\"?) at (eval 14)[/usr/local/lib/perl5/5.6.1/perl5db.pl:1521] line 2.\n"

   "\n"

   "  DB<6> "

2004.08.26 12:53:05

-> "p $ENV{\'PWD\'} || `pwd`\n"

2004.08.26 12:53:05

<- "/users/david2le/cc-scripts\n"

2004.08.26 12:53:05

<- "  DB<7> "

2004.08.26 12:53:05

-> "L\n"

2004.08.26 12:53:05

<- "  DB<7> "

2004.08.26 12:53:05

-> "T\n"

Reading file "/users/david2le/cc-scripts/test_perl.pl"...

Reading file "/users/david2le/cc-scripts/test_perl.pl"...done.

#  File "/users/david2le/cc-scripts/test_perl.pl" 3 lines, 102 characters

#  Setting buttons...

#  Setting buttons...done.

2004.08.26 12:53:09

<- "  DB<7> "

2004.08.26 12:53:10

-> "h detach\n"

2004.08.26 12:53:10

<- "detach is not a debugger command.\n"

   "  DB<8> "

2004.08.26 12:53:10

-> "h s\n"

2004.08.26 12:53:10

<- "s [expr]        Single step [in expr].\n"

2004.08.26 12:53:10

<- "  DB<9> "

#  Starting Perl...done.

#  Welcome to DDD 3.3.9 "Perky" (sparc-sun-solaris2.8)

2004.08.26 12:53:10

-> "h stepi\n"

2004.08.26 12:53:10

<- "stepi is not a debugger command.\n"

   "  DB<10> "

2004.08.26 12:53:10

-> "h n\n"

2004.08.26 12:53:10

<- "n [expr]        Next, steps over subroutine calls [in expr].\n"

   "  DB<11> "

2004.08.26 12:53:10

-> "h nexti\n"

2004.08.26 12:53:10

<- "nexti is not a debugger command.\n"

   "  DB<12> "

2004.08.26 12:53:10

-> "h until\n"

2004.08.26 12:53:10

<- "until is not a debugger command.\n"

   "  DB<13> "

2004.08.26 12:53:10

-> "h r\n"

2004.08.26 12:53:10

<- "r               Return from current subroutine.\n"

   "  DB<14> "

2004.08.26 12:53:10

-> "h c\n"

2004.08.26 12:53:10

<- "c [line|sub]    Continue; optionally inserts a one-time-only breakpoint\n"

   "\t\tat the specified position.\n"

   "command         Execute as a perl statement in current package.\n"

   "  DB<15> "

2004.08.26 12:53:10

-> "h signal\n"

2004.08.26 12:53:10

<- "signal is not a debugger command.\n"

   "  DB<16> "

2004.08.26 12:53:10

-> "h kill\n"

2004.08.26 12:53:10

<- "kill is not a debugger command.\n"

   "  DB<17> "

2004.08.26 12:53:10

-> "h up\n"

2004.08.26 12:53:10

<- "up is not a debugger command.\n"

   "  DB<18> "

2004.08.26 12:53:10

-> "h down\n"

2004.08.26 12:53:10

<- "down is not a debugger command.\n"

   "  DB<19> "

2004.08.26 12:53:19

-> "b 3\n"

2004.08.26 12:53:19

<- "  DB<20> "

2004.08.26 12:53:19

-> "L\n"

2004.08.26 12:53:19

<- "test_perl.pl:\n"

   " 3:\tprint \"this is a perl test\";\n"

   "   break if (1)\n"

   "  DB<20> "

2004.08.26 12:53:32

-> "B 3\n"

2004.08.26 12:53:32

<- "Number found where operator expected at (eval 16)[/usr/local/lib/perl5/5.6.1/perl5db.pl:1521] line 2, near \"B 3\"\n"

   "\t(Do you need to predeclare B?)\n"

   "syntax error at (eval 16)[/usr/local/lib/perl5/5.6.1/perl5db.pl:1521] line 2, near \"B 3\"\n"

   "\n"

   "  DB<21> "

2004.08.26 12:53:32

-> "L\n"

2004.08.26 12:53:32

<- "test_perl.pl:\n"

   " 3:\tprint \"this is a perl test\";\n"

   "   break if (1)\n"

   "  DB<21> "

2004.08.26 12:53:35

-> "q\n"

#  Perl: EOF detected

#  Running Perl (pid 535, tty /dev/pts/212)...Exit 0.

#  Saving options in "/users/david2le/.ddd/init"...

#  Searching "ddd/Ddd"...

#  Trying "/users/david2le/.ddd/ddd/Ddd"

#  Trying "/usr/local/share/ddd-3.3.9/ddd/Ddd"

#  Searching "ddd/Ddd"..."/usr/local/share/ddd-3.3.9/ddd/Ddd".

#  Saving options in "/users/david2le/.ddd/init"...done.

#  Saving history in "/users/david2le/.ddd/history"...

#  Saving history in "/users/david2le/.ddd/history"...done.

#  Thanks for using DDD 3.3.9!

===================================================

 

 

Thank you for any and all help

 

 

- cheers David Letcher

mob  : 0414 40 95 95

ph     : +613 9271 4512

email : address@hidden

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]