> quickly edit source code
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
- rename the current file as XXX.dbg.pl
- turn on auto-save
- start debug-mode
and bind it to F6 or something
Another macro on F7 runs the diff.
Updates
¹) 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. |