Permalink
Browse files

[GH #833] preload configure steps

Term::ReadLine does not work on my mingw, debugging configure steps is a pain.
E.g. "b postpone auto::snprintf::runstep" does not set a breakpoint when
debugging Configure.pl

I added a preloading of all steps into early Configure.pl so that breakpoints
can easily be set. The old handling is not changed.
  • Loading branch information...
1 parent 169598d commit be71d13a6958a8c976a856c81944828e806774a3 @rurban rurban committed Sep 17, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 Configure.pl
View
@@ -42,6 +42,13 @@
);
exit(1) unless defined $args;
+# preload all steps for debugging because some Windows systems cannot
+# do "b postpone stepname"
+for my $step_name (@{ $steps_list_ref } ) {
+ eval "use $step_name;"; ## no critic (BuiltinFunctions::ProhibitStringyEval)
+ die $@ if $@;
+}
+
my $opttest = Parrot::Configure::Options::Test->new($args);
# configuration tests will only be run if you requested them

0 comments on commit be71d13

Please sign in to comment.