3 ms·
Hey, don't throw in Emacs in there! I use Emacs for a lot of Python and Django work. I can visually step through debugging, add break points, watch points, and
by lee 16y ago
Hey, don't throw in Emacs in there!
I use Emacs for a lot of Python and Django work. I can visually step through debugging, add break points, watch points, and etc... with Emacs.
Emacs was designed with extensibility from the ground up, and there are a lot of debugging plugins that turn emacs into an "IDE".
- parfe 16y agoCan I ask what your setup is to setup break points and step through?
- johngunderman 16y agoSuper simple: run M-x gdb to bring up gdb, and then run M-x gdb-many-windows to make it look like an IDE debugger. it gives you the gdb prompt, the state of variables at any breakpoints, current threads that are running, what is on the stack, where you are in your code... pretty much anything you need from gdb. Compiling your code with the -g flag is a must though, if you want line numbers etc. for your errors/debugging. As far as setting breakpoints and stepping through, I personally use the gdb console. However, you can set breakpoints by clicking the left margin of the line you want to break on, and I believe there is a key map for stepping through.
- parfe 16y agoThat works for C, but I was looking for the Python example.
- lee 16y agoSpecifically for Python I use the ActiveState DBGP Client. You can find that here: http://docs.activestate.com/komodo/4.4/debugpython.html http://docs.activestate.com/komodo/4.4/debugpython.html I use Geben as the emacs plugin to connect to the debug client. http://code.google.com/p/geben-on-emacs/ http://code.google.com/p/geben-on-emacs/ The benefit of this is that I can debug remotely, or when I have my development setup in a chroot or virtual environment, I can still debug from outside.