Main > Free Download Search >

Free devel carnivore software for linux

devel carnivore

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 127
Devel::Carnivore 0.09

Devel::Carnivore 0.09


Devel::Carnivore is a Perl module to spy on your hashes (and objects). more>>
Devel::Carnivore is a Perl module to spy on your hashes (and objects).

SYNOPSIS

use Devel::Carnivore;

sub new_attribute {
my %self : Watch("myName") = ();

bless %self, shift;
}

sub new_functional {
my $self = {};
watch $self, "myName";
bless $self
}

sub new_blessed {
my $self = {};
bless $self;
watch $self, "myName";
return $self;
}

sub new_scalar_attribute {
my $self : Watch("myName") = {};
bless $self
}

This module allows you to debug your hashes and, in particular, your objects based on hashes without using the perl debugger. There are several good reasons to do this. Among them:

1) Youre too stupid to use the perl debugger (This is true for me)

2) Youre building web applications and the perl debugger doesnt work very well in that environment

Obviously, this module does not provide you with a complete debugger. All it does is helping you keep track of the state changes which occur to your objects.

Output

By default all output is written to STDERR. You may change this behavior by assigning a valid output filehandle to $Devel::Carnivore::OUT.

Everytime the hash which is being watched by this module is assigned to, a message like this is created: > ProgLang: "cool" changed from "Java" to "Perl" at devel.pl line 30

So what does this tell you?

You have a Perl file named devel.pl. On line 30 your code changed the value of the key "cool" from "Java" to "Perl". In order, to identify this hash you optionally named it "ProgLang".

<<less
Download (0.007MB)
Added: 2006-10-03 License: Perl Artistic License Price:
1116 downloads
Devel::Cover 0.61

Devel::Cover 0.61


Devel::Cover package contains code coverage metrics for Perl. more>>
Devel::Cover package contains code coverage metrics for Perl.

SYNOPSIS

perl -MDevel::Cover yourprog args
cover

perl -MDevel::Cover=-db,cover_db,-coverage,statement,time yourprog args
To test an uninstalled module:
cover -delete
HARNESS_PERL_SWITCHES=-MDevel::Cover make test
cover
To test an uninstalled module which uses Module::Build (0.26 or later):
./Build testcover
If the module does not use the t/*.t framework:
PERL5OPT=-MDevel::Cover make test

This module provides code coverage metrics for Perl. Code coverage metrics describe how throroughly tests exercise code. By using Devel::Cover you can find areas of code not exercised by your tests and find out which tests to create to increase coverage. Code coverage can be considered as an indirect measure of quality.

If you cant guess by the version number this is an alpha release.
Code coverage data are collected using a pluggable runops function which counts how many times each op is executed. These data are then mapped back to reality using the B compiler modules. There is also a statement profiling facility which needs a better backend to be really useful.

The cover program can be used to generate coverage reports.

Statement, branch, condition, subroutine, pod and time coverage information is reported. Statement coverage data should be reasonable, although there may be some statements which are not reported. Branch and condition coverage data should be mostly accurate too, although not always what one might initially expect. Subroutine coverage should be as accurate as statement coverage. Pod coverage comes from Pod::Coverage. If Pod::Coverage::CountParents is available it will be used instead. Coverage data for path coverage are not yet collected.

The gcov2perl program can be used to convert gcov files to Devel::Cover databases.

You may find that the results dont match your expectations. I would imagine that at least one of them is wrong.

The most appropriate mailing list on which to discuss this module would be perl-qa. Discussion has migrated there from perl-qa-metrics which is now defunct. See http://lists.perl.org/showlist.cgi?name=perl-qa.

<<less
Download (0.026MB)
Added: 2007-05-01 License: Perl Artistic License Price:
907 downloads
Devel::Monitor 0.9.0.7

Devel::Monitor 0.9.0.7


Devel::Monitor is a Perl module that can monitor your variables/objects for memory leaks. more>>
Devel::Monitor is a Perl module that can monitor your variables/objects for memory leaks.

You have memory leaks, and you want to remove it... You can use this tool to help you find which variables/objects that are not destroyed when they should be, and thereafter, you can visualise exactly where is the circular reference for some specific variables/objects.

WHAT IT CANT DO

Even if your modules are memory leak free, it doesnt mean that external modules that you are using dont have it. So, before running your application on mod_perl, you should be sure that EVERY modules are ok. (In particular those perl extensions calling C++ code)

SYNOPSIS

use Devel::Monitor qw(:all);

#-----------------------------------------------------------------------------
# Monitor scalars, arrays, hashes, references, constants
#-----------------------------------------------------------------------------
my ($a,$b) = (Foo::Bar->new(), Foo::Bar->new());
my ($c, @d, %e);
use constant F => [1,2];
monitor(name for a => $a,
name for b => $b,
name for c => $c,
name for d => @d,
name for e => %e,
name for F => &F); #NOTE : Dont add parentheses to the end of the constant (&F())

#-----------------------------------------------------------------------------
# Print circular references
#-----------------------------------------------------------------------------
# NOTE : You cannot use print_circular_ref on a monitored/tied variable
# (See "We cannot use tied objects references because it reuse memory space" doc)
print_circular_ref($a);
print_circular_ref($b);
print_circular_ref($c);
print_circular_ref(@d);
print_circular_ref(%e);
print_circular_ref(&F); #NOTE : Dont add parentheses to the end of the constant (&F())

USAGE : monitor

Example with a circular reference
+----------------------+
| Code |
+----------------------+
{
my @a;
monitor(a => @a);
$a[0] = @a; #Add a circular reference
print STDERR "Leaving scopen";
}
print STDERR "Scope leftn";

+----------------------+
| Output |
+----------------------+
MONITOR ARRAY a
Leaving scope
Scope left
DESTROY ARRAY a

+----------------------+
| Meaning |
+----------------------+
The line "DESTROY ARRAY a" should be between scope prints.
@a were deleted on program exit.

Example without a circular reference

+----------------------+
| Code |
+----------------------+
{
my @a;
monitor(a => @a);
print STDERR "Leaving scopen";
}
print STDERR "Scope leftn";

+----------------------+
| Output |
+----------------------+
MONITOR ARRAY a
Leaving scope
DESTROY ARRAY a
Scope left

+----------------------+
| Meaning |
+----------------------+
Everything is ok

Now that you know there is a circular reference, you can track it down using the print_circular_ref method

<<less
Download (0.016MB)
Added: 2007-06-28 License: Perl Artistic License Price:
848 downloads
Devel::STrace::Monitor 0.31

Devel::STrace::Monitor 0.31


Devel::STrace::Monitor is a monitor interface component for Devel::STrace. more>>
Devel::STrace::Monitor is a monitor interface component for Devel::STrace.

SYNOPSIS

#
# open the mmaped file
#
use Devel::STrace::Monitor;

my $view = Devel::STrace::Monitor->open(somefile.map);

my $cycles = 0;
while (1) {
print "n**************************************n";
#
# refresh the internal ringbuffer map
#
$view->refresh();
#
# dump the current traces
#
$view->trace(&dump_trace);

sleep 10;
}
#
# method to display the traces
#
sub dump_trace {
my ($key, $slot, $depth, $line, $time, $entry) = @_;

$lastkey = $key,
print "n**************************************n"
unless ($lastkey eq $key);

if ($time) {
#
# trim the weekday and year from timestamp
#
my $frac = ($time - int($time)) * 1000000;
$frac=~s/..*$//;
my @parts = split(/s+/, scalar localtime($time));
pop @parts; # get rid of year
print "$key($depth) : $slot : $entry:$line at ",
join( , @parts), ., $frac, "n";
}
else {
print "$key($depth) : $slot : $entry:$line (No timestamp)n";
}
}

Provides methods to attach to and read the memory mapped file generated by Devel::STrace (or future full featured debuggers) using Devel::RingBuffer.

set or clear any of the $DB::single, $DB::trace, or $DB::signal control variables of the AUT (via their tied interfaces in the AUT).

inspect the current execution call stack of the AUT

The interfaces provide a simple framework for building an external application that can attach to a running Perl application, monitor its current execution, and eventually detach, all while permitting the application continue to run uninterrupted.

A more complete debugger module is planned to exploit the various command/control structures available via Devel::RingBuffer. Note that this module will be fully compatible with the resulting debugger so that, e.g., an application can first be monitored to detect troublespots, and then the debugger can be attached to fully debug the problem.

<<less
Download (0.018MB)
Added: 2006-10-19 License: Perl Artistic License Price:
1100 downloads
Devel::Profile 1.04

Devel::Profile 1.04


Devel::Profile is a Perl module to tell me why my perl program runs so slowly. more>>
Devel::Profile is a Perl module to tell me why my perl program runs so slowly.

SYNOPSIS

perl -d:Profile program.pl
less prof.out

The Devel::Profile package is a Perl code profiler. This will collect information on the execution time of a Perl script and of the subs in that script. This information can be used to determine which subroutines are using the most time and which subroutines are being called most often.
To profile a Perl script, run the perl interpreter with the -d debugging switch. The profiler uses the debugging hooks. So to profile script test.pl the following command should be used:

perl -d:Profile test.pl

When the script terminates (or periodicly while running, see ENVIRONMENT) the profiler will dump the profile information to a file called prof.out. This file is human-readable, no additional tool is required to read it.

Note: Statistics are kept per sub, not per line.

<<less
Download (0.007MB)
Added: 2006-10-03 License: Perl Artistic License Price:
1116 downloads
Devel::CallerItem 1.0

Devel::CallerItem 1.0


Devel::CallerItem is an Perl object representing a function call from the stack of function calls. more>>
Devel::CallerItem is an Perl object representing a function call from the stack of function calls.

SYNOPSIS

Usage:

require Devel::CallerItem;

$call = Devel::CallerItem->from_depth($depth) || return;
$passed_arguments_ref = $call->argument_list_ref();
$callpack = $call->pack();
$callfile = $call->file();
$callline = $call->line();
$callsub = $call->subroutine();
$bool = $call->has_args();
$bool = $call->wants_array();
($arg_ref,@caller) = $call->as_array();
$call_string = $call->as_string($print_level);
$passed_arguments_string = $call->arguments_as_string();

$printable_arg = Devel::CallerItem->printable_arg($arg,$print_level);

Devel::CallerItem objects hold all the information about a specific function call on the stack. The information is basically that obtained from caller and @DB::args, packaged into an object. This comes with some useful methods to print the object in a nice way.

<<less
Download (0.004MB)
Added: 2007-05-01 License: Perl Artistic License Price:
908 downloads
Devel::Backtrace 0.01

Devel::Backtrace 0.01


Devel::Backtrace is a Perl module for object-oriented backtrace. more>>
Devel::Backtrace is a Perl module for object-oriented backtrace.

SYNOPSIS

my $backtrace = Devel::Backtrace->new;

print $backtrace; # use automatic stringification

print $backtrace->point(0)->line;

METHODS

Devel::Backtrace->new([$start])

Constructs a new Devel::Backtrace which is filled with all the information caller($i) provides, where $i starts from $start. If no argument is given, $start defaults to 0.

If $start is 1 (or higher), the backtrace wont contain the information that (and where) Devel::Backtrace::new() was called.

$backtrace->point($i)

Returns the ith tracepoint as a Devel::Backtrace::Point object (see its documentation for how to access every bit of information).

Note that the following code snippet will print the information of caller($start+$i):

print Devel::Backtrace->new($start)->point($i)

$backtrace->points()

Returns a list of all tracepoints.

$backtrace->skipme([$package])

This method deletes all leading tracepoints that contain information about calls within $package. Afterwards the $backtrace will look as though it had been created with a higher value of $start.

If the optional parameter $package is not given, it defaults to the calling package.

The effect is similar to what the Carp module does.

This module ships with an example "skipme.pl" that demonstrates how to use this method.

$backtrace->to_string()

Returns a string that contains one line for each tracepoint. It will contain the information from Devel::Backtrace::Points to_string() method. To get more information, use the to_long_string() method.

Note that you dont have to call to_string() if you print a Devel::Backtrace object or otherwise treat it as a string, as the stringification operator is overloaded.

$backtrace->to_long_string()

Returns a very long string that contains several lines for each trace point. The result will contain every available bit of information. See "to_long_string" in Devel::Backtrace::Point for an example of what the result looks like.

<<less
Download (0.006MB)
Added: 2007-05-01 License: Perl Artistic License Price:
908 downloads
Devel::Cycle 1.07

Devel::Cycle 1.07


Devel::Cycle is a Perl module that helps you to find memory cycles in objects. more>>
Devel::Cycle is a Perl module that helps you to find memory cycles in objects.

SYNOPSIS

#!/usr/bin/perl
use Devel::Cycle;
my $test = {fred => [qw(a b c d e)],
ethel => [qw(1 2 3 4 5)],
george => {martha => 23,
agnes => 19}
};
$test->{george}{phyllis} = $test;
$test->{fred}[3] = $test->{george};
$test->{george}{mary} = $test->{fred};
find_cycle($test);
exit 0;

# output:

Cycle (1):
$A->{george} => %B
$B->{phyllis} => %A

Cycle (2):
$A->{george} => %B
$B->{mary} => @A
$A->[3] => %B

Cycle (3):
$A->{fred} => @A
$A->[3] => %B
$B->{phyllis} => %A

Cycle (4):
$A->{fred} => @A
$A->[3] => %B
$B->{mary} => @A

# you can also check weakened references
weaken($test->{george}->{phyllis});
find_weakened_cycle($test);
exit 0;

# output:

Cycle (1):
$A->{george} => %B
$B->{mary} => @C
$C->[3] => %B

Cycle (2):
$A->{george} => %B
w-> $B->{phyllis} => %A

Cycle (3):
$A->{fred} => @C
$C->[3] => %B
$B->{mary} => @C

Cycle (4):
$A->{fred} => @C
$C->[3] => %B
w-> $B->{phyllis} => %A

<<less
Download (0.006MB)
Added: 2007-07-05 License: Perl Artistic License Price:
841 downloads
Devel::RingBuffer 0.31

Devel::RingBuffer 0.31


Devel::RingBuffer is a Perl module with shared memory ring buffers for Perl scripts diagnosis/debug. more>>
Devel::RingBuffer is a Perl module with shared memory ring buffers for Perl scripts diagnosis/debug.

SYNOPSIS

#
# create ringbuffer
#
use Devel::RingBuffer;
use Devel::RingBuffer::TieInt;

my $ringbuf = Devel::RingBuffer->new(
File => somefile.trace,
Rings => 20,
Slots => 20,
SlotSize => 300,
MessageSize => 256,
GlobalSize => 24 * 1024,
StopOnCreate => 0,
TraceOnCreate => 1) || die "Cant create a ring buffer.";

my $ring = $ringbuf->allocate();

Provides shared memory structures (using memory mapped files via IPC::Mmap) to be used by diagnostic and debugger applications for Perl scripts (see Devel::STrace). Using XS/C code to maximize performance, creates a set of ringbuffers with a configurable number of slots.

Each slot includes a field for a linenumber, a timestamp, and a fully qualified subroutine name. Each ring buffer also includes additional headers and fields to support diagnostic interfaces, e.g., watched expressions, command/reponse interfaces to the monitored applications, etc.

<<less
Download (0.037MB)
Added: 2007-05-02 License: Perl Artistic License Price:
908 downloads
Devel::PPPort 3.11

Devel::PPPort 3.11


Devel::PPPort is a Perl/Pollution/Portability. more>>
Devel::PPPort is a Perl/Pollution/Portability.

SYNOPSIS

Devel::PPPort::WriteFile(); # defaults to ./ppport.h
Devel::PPPort::WriteFile(someheader.h);

Perls API has changed over time, gaining new features, new functions, increasing its flexibility, and reducing the impact on the C namespace environment (reduced pollution). The header file written by this module, typically ppport.h, attempts to bring some of the newer Perl API features to older versions of Perl, so that you can worry less about keeping track of old releases, but users can still reap the benefit.

Devel::PPPort contains a single function, called WriteFile. Its only purpose is to write the ppport.h C header file. This file contains a series of macros and, if explicitly requested, functions that allow XS modules to be built using older versions of Perl. Currently, Perl versions from 5.003 to 5.9.4 are supported.
This module is used by h2xs to write the file ppport.h.

Why use ppport.h?

You should use ppport.h in modern code so that your code will work with the widest range of Perl interpreters possible, without significant additional work.
You should attempt older code to fully use ppport.h, because the reduced pollution of newer Perl versions is an important thing. Its so important that the old polluting ways of original Perl modules will not be supported very far into the future, and your module will almost certainly break! By adapting to it now, youll gain compatibility and a sense of having done the electronic ecology some good.

How to use ppport.h

Dont direct the users of your module to download Devel::PPPort. They are most probably no XS writers. Also, dont make ppport.h optional. Rather, just take the most recent copy of ppport.h that you can find (e.g. by generating it with the latest Devel::PPPort release from CPAN), copy it into your project, adjust your project to use it, and distribute the header along with your module.

Running ppport.h

But ppport.h is more than just a C header. Its also a Perl script that can check your source code. It will suggest hints and portability notes, and can even make suggestions on how to change your code. You can run it like any other Perl program:

perl ppport.h [options] [files]

It also has embedded documentation, so you can use

perldoc ppport.h

to find out more about how to use it.

<<less
Download (0.15MB)
Added: 2007-05-02 License: GPL (GNU General Public License) Price:
905 downloads
Devel::TrackObjects 0.2

Devel::TrackObjects 0.2


Devel::TrackObjects is a Perl module to track use of objects. more>>
Devel::TrackObjects is a Perl module to track use of objects.

SYNOPSIS

cmdline

perl -MDevel::TrackObjects=/^IO::/ server.pl

inside

use Devel::TrackObjects qr/^IO::/;
use Devel::TrackObjects -verbose;
use IO::Socket;
...
my $sock = IO::Socket::INET->new...
...

Devel::TrackObjects->show_tracked;

Devel::TrackObjects redefines bless and thus tracks the creation of objectsi by putting weak references to the object into a list. It can be specified which classes to track.

At the end of the program it will print out infos about the still existing objects (probably leaking). The same info can be print out during the run using show_tracked.

IMPORTANT

The Module must be loaded as early as possible, because it cannot redefine bless in already loaded modules. See import how to load it so that it redefines bless.

METHODS

The following class methods are defined.

import ( COND|OPTIONS )

Called from use.

COND is a list of conditions. A condition is either a regex used as a match for a classname, a string used to match the class with exactly this name or a reference to a subroutine, which gets called to decide if the class should get tracked (must return TRUE).

Special is if the condition is /regex/. In this case it will be compiled as a regex. This is used, because on the perl cmdline one cannot enter compiled regex.
If the item is a string starting with "-" it will be interpreted as an option. Valid options are:

-verbose

Output from show_tracked will be more verbose, e.g it will use show_tracked_detailed instead of show_tracked_compact.

-noend

Dont show remaining tracked objects at END.

-debug

Will switch an internal debugging.

If conditions are given it will redefine CORE::GLOBAL::bless unless it was already redefined by this module.

That means you do not pay a performance penalty if you just include the module, only if conditions are given it will redefine bless.

show_tracked ( [ PREFIX ] )

If -verbose was set in import it will call show_tracked_detailed, otherwise show_tracked_compact.

This method will be called at END unless -noend was specified in import.

show_tracked_compact ( [ PREFIX ] )

Will create a hash containing all tracked classes and the current object count for the class.

If the caller wants to get something in return it will return a reference to this hash, otherwise it will print out the information in a single line to STDERR starting with "LEAK$PREFIX".

show_tracked_detailed ( [ PREFIX ] )

If the caller wants something in return it will give it a reference to an array containing array-refs with [ REF,FILE,LINE ], where REF is the weak reference to the object, FILE and LINE the file name and line number, where the object was blessed.

If the calling context is void it will print these information to STDERR. The first line will start with "LEAK$PREFIX", the next ones with "--" and the last one again with "LEAK$PREFIX".

<<less
Download (0.004MB)
Added: 2007-05-03 License: Perl Artistic License Price:
904 downloads
Devel::GDB 2.0

Devel::GDB 2.0


Devel::GDB is a Perl module to open and communicate a gdb session. more>>
Devel::GDB is a Perl module to open and communicate a gdb session.

SYNOPSIS

use Devel::GDB;

$gdb = new Devel::GDB();
print $gdb->send_cmd(-environment-path);
print $gdb->get(info functions);
The old get syntax (of Devel::GDB-1.23) has been deprecated and will not be supported in future versions. See the documentation of the get function for an explanation of why.
If you really want to use the old syntax, set $Devel::GDB::DEPRECATED to true:
use Devel::GDB ;

$Devel::GDB::DEPRECATED = 1;
$gdb = new Devel::GDB();
print $gdb->get(info functions, $timeout, $prompt, $notyet, $alldone);

The Devel::GDB package provides an interface for communicating with GDB. Internally, it uses the GDB/MI interpreter (see http://sourceware.org/gdb/current/onlinedocs/gdb_25.html), which accurately informs the caller of the program state and, through the use of tokens, guarantees that the results returned actually correspond to the request sent. By contrast, GDBs console interpreter returns all responses on STDOUT, and thus there is no way to ensure that a particular response corresponds to a particular request.

Therefore, it is obviously preferable to use GDB/MI when programmatically interacting with GDB. This can be done via the send_cmd family of functions (send_cmd, send_cmd_excl, and send_cmd_async). There are, however, some cases when there is no GDB/MI command corresponding to a particular console command, or it has not yet been implemented (for example, -symbol-type, corresponding to the console command ptype, is not yet implemented as of GDB 6.6). In this case, the get function provides a workaround by capturing all output sent to the console stream.

<<less
Download (0.012MB)
Added: 2007-05-08 License: Perl Artistic License Price:
901 downloads
Devel::Pointer 1.00

Devel::Pointer 1.00


Devel::Pointer is a Perl module that can fiddle around with pointers. more>>
Devel::Pointer is a Perl module that can fiddle around with pointers.

SYNOPSIS

use Devel::Pointer;
$a = address_of($b); # a = &b;
$b = deref($a); # b = *a;

$a = unsmash_sv(0+$scalar_ref);
@a = unsmash_av(0+$array_ref);
%a = unsmash_hv(0+$hash_ref);
&a = unsmash_cv(0+$code_ref);
# OK, you cant do that, but you get the idea

$c = deref(-1); # *(-1), and the resulting segfault.

The primary purpose of this is to turn a smashed reference address back into a value. Once a reference is treated as a numeric value, you cant dereference it normally; although with this module, you can.

Be careful, though, to avoid dereferencing things that dont want to be dereferenced.

<<less
Download (0.003MB)
Added: 2007-07-26 License: Perl Artistic License Price:
821 downloads
Devel::Tokenizer::C 0.05

Devel::Tokenizer::C 0.05


Devel::Tokenizer::C is a Perl module that can generate C source for fast keyword tokenizer. more>>
Devel::Tokenizer::C is a Perl module that can generate C source for fast keyword tokenizer.

SYNOPSIS

use Devel::Tokenizer::C;

$t = new Devel::Tokenizer::C TokenFunc => sub { "return U$_[0];n" };

$t->add_tokens(qw( bar baz ))->add_tokens([for]);
$t->add_tokens([qw( foo )], defined DIRECTIVE);

print $t->generate;

The Devel::Tokenizer::C module provides a small class for creating the essential ANSI C source code for a fast keyword tokenizer.

The generated code is optimized for speed. On the ANSI-C keyword set, its 2-3 times faster than equivalent code generated with the gprof utility.

The above example would print the following C source code:
switch (tokstr[0])
{
case b:
switch (tokstr[1])
{
case a:
switch (tokstr[2])
{
case r:
if (tokstr[3] == )
{ /* bar */
return BAR;
}

goto unknown;

case z:
if (tokstr[3] == )
{ /* baz */
return BAZ;
}

goto unknown;

default:
goto unknown;
}

default:
goto unknown;
}

case f:
switch (tokstr[1])
{
case o:
switch (tokstr[2])
{
#if defined DIRECTIVE
case o:
if (tokstr[3] == )
{ /* foo */
return FOO;
}

goto unknown;
#endif /* defined DIRECTIVE */

case r:
if (tokstr[3] == )
{ /* for */
return FOR;
}

goto unknown;

default:
goto unknown;
}

default:
goto unknown;
}

default:
goto unknown;
}

So the generated code only includes the main switch statement for the tokenizer. You can configure most of the generated code to fit for your application.

<<less
Download (0.011MB)
Added: 2006-07-06 License: Perl Artistic License Price:
1206 downloads
Devel::Command::NewF 0.02

Devel::Command::NewF 0.02


Devel::Command::NewF is a Perl module with the extended f command for the debugger. more>>
Devel::Command::NewF is a Perl module with the extended f command for the debugger.

SYNOPSIS

# In .perldb (or perldb.ini on Windows)
use Devel::Command;

# Devel::Command::NewF loaded automatically

perl -de0
Patching with Devel::Command::DBSub::DB_5_8_5

Loading DB routines from perl5db.pl version 1.27
Editor support available.

Enter h or `h h for help, or `man perldebug for more help.

main::(-e:1): 0
DB< 1 > fx Test::More
Loaded Test::More
auto(-1) DB< 2 > f /home/y/lib/perl5/5.8/i386-freebsd-thread-multi/Test/More.pm
1 package Test::More;
2
3: use 5.004;
4
5: use strict;
6
7
8 # Cant use Carp because it might cause use_ok() to accidentally succeed 9 # even though the module being used forgot to use Carp. Yes, this
10 # actually happened.
DB< 3 >

This module extends the debuggers f command so that you can simply enter the standard module name to switch the debugger to it:

DB< 1 > fx My::Module

This would look for My::Module in %INC; if it was not found, we would attempt to use the module. If this also fails, we give up, with an error message.

<<less
Download (0.005MB)
Added: 2007-01-12 License: Perl Artistic License Price:
1015 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5