-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add stack frames to debugger call stack #1150
Comments
Thanks for reporting this. I'm not sure if this is a limitation of cider-nrepl's debugger or just something I overlooked when implementing. I'll have to look more into it. |
It does indeed look like I just overlooked this 😄. I admittedly don't use the debugger much, so your feedback is helpful. I think I can improve the call stack fairly easily, though it may be a little time before I can complete this. |
I've noticed stacktraces don't have a source file for frame involving the call site. For example in the below image, if I eval the top level form at line 116, the frame for that call in the stacktrace will not have a source file. I think this is because we're not passing file info to the nrepl eval op here: Line 307 in e4e20da
We pass the info to the CC @PEZ. I'll try this out when I get back to this. |
You can see this in this stackframe here: I eval'd the call to |
My mistake, apparently we are sending line, column, and file to the nrepl op. I wonder why nrepl gives us |
@AL4AL Check out the latest version of Calva. You should see more stack frames in the call stack now. Let me know if you have issues. |
This was rolled back in 2.0.205. See #1236 and #1210. The issue seems to caused by changes made to |
I've decided to not spend more time on this feature, at least for the foreseeable future. After watching "Victim's of Complexity" by Bozhidar Batsov, re-evaluating the time I have to spend on Calva with respect to more recent work commitments, and re-thinking the way I approach Calva maintenance and development, I'd like to spend the time I have on:
I did work on this a little bit and below are my notes for anyone who may want to pick this up. Reproduction
At this point, I find that if I disconnect the debugger by clicking the disconnect button, then call the function again, the debugger works fine. Notes
|
I tried calva debugger in metabase project, wherever I pause the application by Instrumenting top level form for debugging, It pauses and everythinks works as expected but call stack, code is paused in a function and I know there are at least more than 3 files involved and many functions has called each other until they have reached this function but call stack only shows current function:
![image](https://user-images.githubusercontent.com/22044358/115996286-eefb1380-a5f3-11eb-9bec-4f54a26e107c.png)
While I want to know who called this function
The text was updated successfully, but these errors were encountered: