Skip to content
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

feature request: add key binding for send line and step #105

Open
ngmaclaren opened this issue Jul 28, 2022 · 2 comments
Open

feature request: add key binding for send line and step #105

ngmaclaren opened this issue Jul 28, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ngmaclaren
Copy link

In ESS[R], "C-<return>" evaluates the current line or region and steps to the next line (the function is ess-eval-region-or-line-visibly-and-step). I use that feature a lot when I'm debugging, and I'd like to use it in julia-snail. In julia-snail, "C-c C-l" evaluates the current line, but it doesn't step. I wrote a keyboard macro to do just the evaluate line and step portion for me and put this code in my init.el:

(fset 'send-line-and-step-jl
      (kmacro-lambda-form [?\C-c ?\C-l ?\C-n] 0 "%d"))
(add-hook 'julia-mode-hook
	  (lambda () (local-set-key (kbd "C-<return>") #'send-line-and-step-jl)))

Could something like this be added to julia-snail? It would be nicer if the function could evaluate regions and step to the next code line (skipping over white space and comments).

Thanks for a great resource!

@gcv gcv added enhancement New feature or request good first issue Good for newcomers labels Jul 28, 2022
@johnabs
Copy link

johnabs commented Aug 15, 2022

Have you considered checking out Debugger.jl and binding something there? I recently found out about it, and 100% agree that such a stepping feature being either seperate, or attached to Debugger, would be an excellent addition.

Here's a link to it, if you want to take a look :3 https://github.com/JuliaDebug/Debugger.jl

@gcv
Copy link
Owner

gcv commented Aug 16, 2022

A step debugger would, indeed, be a great addition to Snail. It's entirely possible that Debugger.jl is the necessary foundation on which to build. Patches welcome. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants