How can I drop into the Perl 6 REPL inside a program?

Viewed 217

Is there a way that I can single step through part (or all) of a Perl 6 program? I expected that there would be a -d, but of course there is not:

% perl6 -d test.p6

I thought perhaps eval-ing the file, but that does the whole thing at once:

% perl 6
> EVALFILE 'test.p6'

As I expected, that just runs the entire file.

I suspect someone hasn't implemented this sort of thing. Is there some way I can hook into the runtime to insert actions between statements and so on? In Perl 5 land, that would be the DB class.

Aside from that, does Perl 6 work with any general debuggers? If I were using the JVM backend, would it even make sense to use a Java tool (or is it gibberish by that point)?

1 Answers
Related