Skip Menu |

This queue is for tickets about the only CPAN distribution.

Report information
The Basics
Id: 6578
Status: new
Priority: 0/
Queue: only

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.26
Fixed in: (no value)



Subject: $DB::single = 1 at only.pl:17 should be removed
16 sub import { 17: $DB::single = 1; 18: goto &_install if @_ == 2 and $_[1] eq 'install'; in only.pl you've left a $DB::single = 1 in there, probably from when you were debugging? It's REALLY annoying when you want to use the debugger with a use only 'something' => $version, and the debugger dumps you deep into an unknown module unexpectedly. If I wanted to debug the call, I would put a BEGIN { $DB::single = 1 } in my code before the only call. Assuming you didn't mean to leave it there, you should really remove it or comment it out.
That should, of course, read only.pm Show quoted text
> in only.pl you've left a $DB::single = 1 in there, probably from when > you were debugging?
From: James FitzGibbon
[ADAMK - Thu Jun 10 05:12:56 2004]: Show quoted text
> in only.pl you've left a $DB::single = 1 in there, probably from when > you were debugging? > > It's REALLY annoying when you want to use the debugger with a use only > 'something' => $version, and the debugger dumps you deep into an > unknown module unexpectedly.
<plug type="shameless"> I've been guilty of this many times, which is why I wrote Test::NoBreakpoints to slap me when I forget to remove them. Regards </plug>