summaryrefslogtreecommitdiff
path: root/lib/perl5db
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@iglu.org.il>2011-06-15 21:46:16 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-06-15 21:53:19 -0700
commit076b743fc5f369c78306040642d57f05f84f6dba (patch)
tree834fa4eecaff325cbb95e1a6197b999bb0a22783 /lib/perl5db
parent2211a10b908f0f844bed2deea3745c72b54d2f2f (diff)
downloadperl-076b743fc5f369c78306040642d57f05f84f6dba.tar.gz
Break upon <filename>:<line>
Diffstat (limited to 'lib/perl5db')
-rw-r--r--lib/perl5db/t/MyModule.pm15
-rw-r--r--lib/perl5db/t/filename-line-breakpoint14
2 files changed, 29 insertions, 0 deletions
diff --git a/lib/perl5db/t/MyModule.pm b/lib/perl5db/t/MyModule.pm
new file mode 100644
index 0000000000..6a72fac484
--- /dev/null
+++ b/lib/perl5db/t/MyModule.pm
@@ -0,0 +1,15 @@
+package MyModule;
+
+use strict;
+use warnings;
+
+use vars qw($var);
+
+$var = "Bar";
+
+sub function
+{
+ print "In MyModule.\n";
+}
+
+1;
diff --git a/lib/perl5db/t/filename-line-breakpoint b/lib/perl5db/t/filename-line-breakpoint
new file mode 100644
index 0000000000..8331175841
--- /dev/null
+++ b/lib/perl5db/t/filename-line-breakpoint
@@ -0,0 +1,14 @@
+#!/perl
+
+use strict;
+use warnings;
+
+use MyModule;
+
+my $x = "Foo";
+
+MyModule::function();
+
+print "In Main File.\n";
+
+1;