Given there are well established debugging tools in Emacs (and Vim too?) I cannot imagine this being terribly difficult, assuming the protocol is reasonable and consistent.
Given there are well established debugging tools in Emacs (and Vim too?) I cannot imagine this being terribly difficult, assuming the protocol is reasonable and consistent.