how to stop on breakpoints [message #1084016] |
Sat, 10 August 2013 22:21 |
Sandy Bittman Messages: 2 Registered: August 2013 |
Junior Member |
|
|
I'm trying to set up a Perl development environment similar to what I had at my 9 to 5 job.
I've downloaded Strawberry Perl 5.16.3 with Eclipse and Epic for editing and debugging.
I've set my Perl project directory to c:\p4 and created the following directory/files:
C:\P4\Shared\GetWeb.pm
C:\P4\WebTests\webTest.pl
C:\P4\WebTests\subtest.pl
The code is working fine, but debugging it was painful because I could not stop on breakpoints in the .pm file while I was creating it.
The .pm file is complex, so I won't post it here, but here are the other two files:
webTest.pl
use Modern::Perl '2013';
use lib '../shared'; # Shared
use Time::Piece;
use GetWeb;
require "subtest.pl";
main();
sub main
{
my %hashedPrices;
my @stockList = ("C","FB","DELL");
%hashedPrices = GetWeb::YahooQuotes(\@stockList,"yahooQuotes.txt");
for my $market (sort keys %hashedPrices)
{
my $LastTrade = $hashedPrices{$market};
print "$market -> $LastTrade\n";
}
%hashedPrices = GetWeb::YahooHistory("C","history.txt");
for my $market (sort keys %hashedPrices)
{
my $LastTrade = $hashedPrices{$market};
print "$market -> $LastTrade\n";
}
subtest();
}
subtest.pl
use Modern::Perl '2013';
sub subtest
{
print "Hello\n";
}
1;
The .pm file gets web pages then converts them into pseudo code with "most" of the HTML coding removed, interprets it per the type of stock market data requested, and then returns the data as a hash.
As I continue development, I'd love to be able to stop the debugger inside the .pm file and examine the variables!
So my question is simple: Is there some setting that I have to set up to let the debugger stop in other files?
I'm happy to share the source of the pm file for anyone who wants it.
|
|
|
|
Powered by
FUDForum. Page generated in 0.07323 seconds