How do you run multiple instance of gud in emacs
I want to debug C++ and and php in the same emacs instance (using gdb and a php debugging mode that uses gud-common-init). When I fire both up everything just开发者_开发技巧 gets messed up. My guess is that gud.el doesn't support this.
Does anybody know if a way to do this exists?
From gdb help:
To run GDB in text command mode, use `gud-gdb'. You need to use text command mode to debug multiple programs within one Emacs session.
So as you say Emacs don't allow simultaneously full featured debugging, but allow simultaneously many text mode debuggers (like M-x shell).
There is a rewrite of gud called realgud and that support multiple debuggers. It doesn't support php, see this for a list of supported debuggers, but then I am not aware that gud does either. But there are instructions for how to add a new debugger.
精彩评论