cider icon indicating copy to clipboard operation
cider copied to clipboard

After you've finished debugging something the point should go back to the invocation place

Open bbatsov opened this issue 9 years ago • 7 comments

Not sure whether to call this a bug report or an improvement. Personally I find it annoying that when I'm done debugging something the point stays in the source file of the thing I was debugging instead of going back to the place I was when the debugger was triggered.

edebug behaves as I would expect, so likely a bug, but still...

bbatsov avatar Feb 28 '16 09:02 bbatsov

Agree. This has been bothering me too.

Malabarba avatar Feb 28 '16 13:02 Malabarba

Interestingly, while investigating #1589, I found that entering debugger with special-lispy-eval would return point to where the debugger was triggered.

Ah just tested it with separate files, in that case, no the same wrong behavior is seen. But within the same file, the point moves back to the calling function correctly.

sooheon avatar Feb 29 '16 17:02 sooheon

@Malabarba will you have time to address this for 0.12?

bbatsov avatar Apr 02 '16 16:04 bbatsov

No. I'm not super sure if or how I want to fix this. Due to cider evals being asynchronous, we have some fundamental limitations that Edebug doesn't have.

I could just store the place somewhere, and then jump back to it after each step. But I think that would lead to a crappy experience in some corner cases, while making the average case marginally better.

I'd rather keep sitting on this until I have a better idea.

Malabarba avatar Apr 02 '16 16:04 Malabarba

Won't a good first step be to store the initial location and go back there only if someone presses quit? It's just one use-case, but it's a pretty common one.

bbatsov avatar Apr 02 '16 18:04 bbatsov

Hm. That's still more of a patch than a fix, but I like it enough. :-)

I'll try to get it done tomorrow.

Malabarba avatar Apr 03 '16 01:04 Malabarba

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!

stale[bot] avatar May 08 '19 18:05 stale[bot]