Breakpoint for Emacs

Discussion of programming Lisps using Emacs, including SLIME and other tools

Breakpoint for Emacs

Postby 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?

Posts: 46
Joined: Sat Dec 19, 2009 11:20 am

Re: Breakpoint for Emacs

Postby 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.
Posts: 2
Joined: Sat Oct 17, 2009 3:03 am

Return to Emacs

Who is online

Users browsing this forum: No registered users and 3 guests