Hacker News new | past | comments | ask | show | jobs | submit login

Can I ask what your setup is to setup break points and step through?



Specifically for Python I use the ActiveState DBGP Client. You can find that here: 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/

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.


Super 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.


That works for C, but I was looking for the Python example.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: