http://www.perlmonks.org?node_id=1038505


in reply to Re^2: Forking the Perl debugger - which version?
in thread Forking the Perl debugger - which version?

I confess, I'm absent minded and make lots of mistakes. That's one reason I work on debuggers!

I clicked on the IPL link and saw the talk and didn't look at the date carefully. Sorry.

But I still come back the key nagging question, why keep pursuing this rather than incorporate it into one of the existing REPLs or more modern debuggers which can function as a REPL?

Lastly, although the sub ... trick is a clever hack, it is still a hack. Better would be to do something to more directly attack parsing which — yes I know — is hard.

But for the use you describe, it doesn't have to be perfect, and basing off of some sort of more sound framework (such as via some sort of parsing technology) it could incrementally get better in a non-hacky way for the kind of thing you want to do. And could be used for other things too.

Or instead of using some new different parsing technology, you could really start with Perl's parser (and related system) and strip it down. Sort of like what's going on with the sub hack but you have more control over everything.

  • Comment on Re^3: Forking the Perl debugger - which version?