Breakpoint for Emacs

Discussion of programming Lisps using Emacs, including SLIME and other tools
Post Reply
Suroy
Posts: 46
Joined: Sat Dec 19, 2009 11:20 am

Breakpoint for Emacs

Post by Suroy » Sat Dec 19, 2009 4:40 pm

Im attempting to learn debugging in emacs. When i receive a frame i want to evaluate some code in a frame by pressing i. However, once i find the function which returns an incorrect result, but does not signal an error, I would like to set a breakpoint in a spot in the code so i can examine frames there. How can i do this?

Thansk!

mrdodge
Posts: 2
Joined: Sat Oct 17, 2009 3:03 am

Re: Breakpoint for Emacs

Post by mrdodge » Sun Jan 10, 2010 4:17 am

You can use edebug for this. instrument the function for debugging, set breakpoint on entry and then set a breakpoint where you need. bear in mind that if there are macros in the mix, debugging this way may not be as useful as you think.

Post Reply