How can I go into Perl 6 REPL inside a program?

Is there a way that I can take one step through part (or all) of the Perl 6 program? I was expecting to be -d , but of course not:

 % perl6 -d test.p6 

I thought I might be evaluating the file, but all at once:

 % perl 6 > EVALFILE 'test.p6' 

As I expected, it just runs the whole file.

I suspect that someone has not implemented this kind of thing. Is there a way I can connect at run time to insert actions between statements and so on? In Perl 5 land, this will be the DB class.

Also, does Perl 6 work with any general debugger? If I used the JVM backend, would it even be wise to use the Java tool (or is it gibberish at this point)?

+5
source share
1 answer

I started working on this issue as one of the LREP functions. I haven't worked on this for a while, so I'm not sure how well it works. Since the last time I worked on LREP, we did a lot of cleaning on the internal REPL - I hope to change LREP for a cleaner job and adding debugger functions.

+3
source

Source: https://habr.com/ru/post/1270039/


All Articles