Most IDEs offer a debug mode were you step thru the original code while starting the debugger in the background.
Emacs even offers a second pane were the debugger CLI is seen like from the console.¹
You can edit the code while debugging, but you'll need to restart the debug run to see an effect.
> automatically save as to another file( maybe xxx.pl.debug). So it’s handy to diff the orig and debug when done.
Sounds like an XY question to me. Anyway ....
You can write a editor macro to
Another macro on F7 runs the diff.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
¹) emacs can also be started inside the console with no-window mode -nw . Like this you could could have a full textual CLI experience, without extra GUI windows.
In reply to Re: How edit source code in perl debug mode
by LanX
in thread How edit source code in perl debug mode
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |