Next: , Previous: , Up: Edebug   [Contents][Index]


22.4.4 Jumping

Commands described here let you jump to a specified location. All, except i, use temporary breakpoints to establish the stop point and then switch to go mode. Any other breakpoint reached before the intended stop point will also stop execution. See Breakpoints for the details on breakpoints.

f

Run the program forward over one expression (edebug-forward-sexp). More precisely, set a temporary breakpoint at the position that C-M-f would reach, then execute in go mode so that the program will stop at breakpoints.

With a prefix argument n, the temporary breakpoint is placed n sexps beyond point. If the containing list ends before n more elements, then the place to stop is after the containing expression.

Be careful that the position C-M-f finds is a place that the program will really get to; this may not be true in a cond, for example.

This command does forward-sexp starting at point rather than the stop point. If you want to execute one expression from the current stop point, type w first, to move point there.

o

Continue “out of” an expression (edebug-step-out). It places a temporary breakpoint at the end of the sexp containing point.

If the containing sexp is a function definition itself, it continues until just before the last sexp in the definition. If that is where you are now, it returns from the function and then stops. In other words, this command does not exit the currently executing function unless you are positioned after the last sexp.

I

Step into the function or macro after point after first ensuring that it is instrumented. It does this by calling edebug-on-entry and then switching to go mode.

Although the automatic instrumentation is convenient, it is not later automatically uninstrumented.

h

Proceed to the stop point near where point is using a temporary breakpoint (edebug-goto-here).

All the commands in this section may fail to work as expected in case of nonlocal exit, because a nonlocal exit can bypass the temporary breakpoint where you expected the program to stop.


Next: , Previous: , Up: Edebug   [Contents][Index]