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

Support for Elixir pry debugger #305

Open
Sasanidas opened this issue Aug 2, 2022 · 1 comment
Open

Support for Elixir pry debugger #305

Sasanidas opened this issue Aug 2, 2022 · 1 comment

Comments

@Sasanidas
Copy link

Sasanidas commented Aug 2, 2022

I want to add support for the Elixir pry debugger, the idea is to do a similar thing that I did with the Php debugger.

I can force the debugger from the command line, and spawn another REPL, but there can be some variables in the
current REPL that are going to be lost, my question is:
It is possible to "hijack" the current REPL for the debugging session?

If it is too complicated, I'll just call it from the command line 👍

Thanks!

@rocky
Copy link
Collaborator

rocky commented Aug 7, 2022

It is possible to "hijack" the current REPL for the debugging session?

I don't understand exactly what "hijack"ing a current REPL. Of course, if the the REPL in some sort of process buffer with shell mode attached (shell-mode, comint-mode) then we do that all the time. the trepan stuff is a _minor_mode not a major mode.

And the way realgud does its thing is to hook into a process hook. So if the REPL has a means for that, then realgud's hooks can be added to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants