in reply to Re^2: How edit source code in perl debug mode
in thread How edit source code in perl debug mode

To me, not using -d is because it can’t edit in place

That's a really weird statement. A debugger and an editor are two different tools with different user interfaces. Many IDEs integrate them both.

If debugging from the command line, you can fire up the editor of your choice with e.g. system "nano $0" and then edit in place. Integrating the user interface of any editing capabilities in the debugger looks like a bad idea for me.

  • Comment on Re^3: How edit source code in perl debug mode

Replies are listed 'Best First'.
Re^4: How edit source code in perl debug mode
by LanX (Saint) on May 04, 2024 at 18:00 UTC
    FWIW

    The debugger has a very open interface, allows to define aliases or new commands.

    The current filename and line number and code are also easily available.

    See perldebug and perldebguts

    It also supports piping to a "pager" app, which could be less, vi, nano or emacs, etc

    So anything the OP was hinting at could be quite easily implemented.

    I'm not doing to showcase it tho, because the motivation and requirements are more than fuzzy

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery