Devel::Command::NewF is a Perl module with the extended 'f' command for the debugger.
# In .perldb (or perldb.ini on Windows)
# Devel::Command::NewF loaded automatically
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.
DB< 1 > fx Test::More
auto(-1) DB< 2 > f /home/y/lib/perl5/5.8/i386-freebsd-thread-multi/Test/More.pm
1 package Test::More;
3: use 5.004;
5: use strict;
8 # Can't 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 debugger's '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.