in reply to Re^2: Debug recursion ?
in thread Debug recursion ?
If you don't want to go through the subroutine , you can press r , and the code continues it's execution after the subroutine call.I'm not sure if you are confused in how you are presenting it or confused in your understanding. r makes the code resume execution right where it was, but without the debugger in single-step mode, reverting to single-step mode in the current function's caller. Or that's what it's supposed to do; as you noticed, it doesn't seem to work correctly when the debugger breaks with "100 levels deep...".
You've tried to clarify what r does; but I was asking for more information about what you are trying to do.
Try removing any function calls from your return statements; in your example, make it
(without doing this, r doesn't do anything helpful, even without the deep calls) then use r repeatedly until you are out of dumvar:: and back into your code.$n *= fact($n-1); return $n;
I'm looking for a job.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Debug recursion ?
by Alien (Monk) on Feb 25, 2007 at 19:43 UTC | |
by ysth (Canon) on Feb 25, 2007 at 19:45 UTC |