0

I tried to run prove with -d option, but got error:

Cannot detect source of '-d'! at /usr/coderyte/lib/perl5/5.8.8/TAP
/Parser/IteratorFactory.pm line 263

now 'man prove' does not show the -d switch available, but http://perldoc.perl.org/5.8.8/prove.html

clearly shows --debug

Is that a documentation error, or a prove issue ? Is there a way, i can use -debug with prove ? I am using:

$prove -V
TAP::Harness v3.28 and Perl v5.8.8
Charles
  • 50,943
  • 13
  • 104
  • 142
kamal
  • 9,637
  • 30
  • 101
  • 168

1 Answers1

2

The --debug option was removed from prove in 2007. The version of prove originally shipped with Perl 5.8.8 had one, but you've since installed a newer version (from Test-Harness 3.28).

Why do you think you need to use -d? Are you looking for the --verbose (or -v) option?

cjm
  • 61,471
  • 9
  • 126
  • 175
  • 1
    the reason why i needed to use -d option, was 1. Maybe debug would give me more info on errors, maybe debug trace 2. The documentation (as i mentioned in the URL) displayed debug as well as verbose, so what is the difference ? in general if an option is available, i generally check it out ( i dont think that is a bad thing , right ?) – kamal Apr 23 '14 at 16:41
  • Perhaps the OP wanted to use `-d` so as to get what `perl -d` would do – i.e. to engage the debugger and be able to stop execution as desired, examine values & data structures, run commands, and generally figure out what was going on? You know... debug stuff. – Medlock Perlman Oct 25 '22 at 16:55