-
Notifications
You must be signed in to change notification settings - Fork 18
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
Breakpoint-like use-cases #33
Comments
Imho Gallium's breakpoint handling was quite nice (when it worked): Most of those could probably be implemented in Rebugger in some fashion, I think, although I'm quite unfamiliar with the internals. And if not then it should be fairly trivial to implement with Cassette: Just |
Maybe an |
I think some kind of @Enter macro would still be useful for programmatic debugging. I'm finding it a bit of a pain to type a function call in the REPL and position the cursor to the first character of the function, and then typing alt-e. I also still haven't quite figured out how to view variables consistently. I think I have to insert an @show into the code, however things seem to always mess up when I try this. For one it doesn't seem possible to insert a new line in the code one is about to execute. Oh one more thing. The documentation desperately needs to point out that nothing works until you do an includet("filename.jl") on your code. This fact is buried somewhere at the end. It should be shown in the usage examples. Nevertheless I am grateful for this first start at debugging in Julia 1.0. Will this become the defacto debugging utility? |
Works for me, could this be confounded by #44? Try it on short functions first.
Just hit You also have to get used to the REPL's rules about navigating history vs. editing a line (hint: the right and left arrows are your friend), but that's not specific to Rebugger.
A PR would be gratefully accepted. One small correction, however, your statement is true only if you write "scripts" rather than "packages." (By packages I mean something you can load with |
Agreed, though, that Rebugger needs more functionality. I am pretty occupied with improvements to Revise now (which underpins Rebugger), but I will get there eventually. |
I am not sure if this falls into the use case here, but I'd love to add |
Agreed. Such a functionality would be extremely helpful in lieu of setting breakpoints. I was thinking about how to write something like this myself. While Julia does have a parser, it evaluates in the module global scope. Thus you can't even assign local variables, only globals that have already been assigned. I'm not sure how to make the local function scope visible to Julia. Rebugger must have figured that out. |
You can do this now, just insert |
Really? Does Rebugger redefine error? Also pardon my ignorance but what does Alt-S do? Is that a Rebugger keyboard shortcut? |
No, |
This is a fringe use-case, but this doesn't appear to work if you're |
Yes, you need to let the |
Feel free to contributed examples directly to this issue. For use-cases that are described externally, here's a list of links:
The text was updated successfully, but these errors were encountered: