-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 debug layer #9246
add debug layer #9246
Conversation
@CeleritasCelery I refactored the |
a7626bf
to
7f3aa73
Compare
@JAremko I remerged this commit and now the travis build is failing because of documentation issues (missing features with a colon). Am I honestly expected to go and fix everyone's documentation issues in order for my commit to be valid? |
@CeleritasCelery Not expected but it would be nice of you 😉 But you can ignore it. I'll make this part of the test disabled until we sort out #9346 |
Thanks @JAremko. However it looks like a lot more then just one file needs to be fixed. I fixed the issue in the perl5 README as you suggested and now it is complaining about On another note, is there anyway this could get merged (or at very least reviewed) @JAremko? As you can see from the number of 👍 this layers has generated a lot of interest and would be huge addition to Spacemacs. All the Travis build were passing before I remerged. |
@CeleritasCelery I made the FORMATTING test optional. Just rebase your PR 👍 |
56bd602
to
64fff89
Compare
Thanks @JAremko! looks like it is good again. |
layers/+lang/c-c++/packages.el
Outdated
"q" 'realgud:cmd-quit | ||
"S" 'realgud-window-cmd-undisturb-src)))) | ||
(defun c-c++/pre-init-realgud() | ||
(dolist (mode '(c-mode c++-mode)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please replace the '(c-mode c++-mode)
with c-c++-modes
.
5ba8d09
to
7875f0c
Compare
@CeleritasCelery |
122c91b
to
98b01c8
Compare
@JAremko How do I disable it? |
@CeleritasCelery you can simply ignore it or add |
98b01c8
to
59d46c9
Compare
Would be really great, if that could be merged. My PR is nearly a year old and it looks like the realgud stuff is even better |
@syl20bnr self assigned this, so imagine he will make it a priority when he gets back to Spacemacs. |
7479f11
to
c84ea8d
Compare
660860a
to
2d5d98b
Compare
2d5d98b
to
b378b4b
Compare
Any update on merging this? Being able to use a single debugger for every language would be a huge plus. |
I think I may have to open a new PR. This one seems to have fallen into the massive heap of forgotten Pull requests. The maintainers only look at the first few. |
@CeleritasCelery I think @syl20bnr is busy with the new release. He self assigned to this PR so it should be merged. Eventually 😉 |
Any update on merging this? |
What about adding one extra folder. |
Nice hint from this PR: #7355 - make debugger transient state |
I created recenty transient state for realgud. It may be useful for this PR. |
I am going to leave this PR open but I am also going to create a new repo which has the debug layer. There has been a lot of interest in this and many user requests but no action has been taken in Spacemacs. If we make the layer it own repo, users can install and use that until/if this gets merged. @dvzubarev What does a transient state add that the shortkey state doesn't? |
It is not convenient for me to use shortkey state. It overwrites some evil bindings that I used to use in the source code buffer, e.g. |
Those are the keybinding mnemonics that Spacemacs uses. What keybinding do you use to activate your transient state? I do like the idea of having the transient state help text. |
I use these keybindings:
|
Actually, I think it is better to run this transient state automatically when entering new source buffer. It can be achived via this code: (add-hook 'realgud-short-key-mode-hook 'spacemacs/realgud-transient-state/body) |
alright, I created an independent repo here for people who want to use realgud. @dvzubarev, if you want to submit a pull request with your transient state I will test it out and add it. I honestly like that idea better. |
Regarding Do you have some idea to set up keys for evaluating variables around the point? Something like avy-jump will be great. I currently use my clumsy 1 to 9 |
@CeleritasCelery any idea of the status of this PR? I came here by way of this stack exchange question, which details how to set this up for python. (For users searching how to do this) |
It is up to @syl20bnr to merge new layers, so not much can be till then. In the meantime I moved the code to its own repo that people can use until it is merged. |
@CeleritasCelery, I've added the following to the packages.el in the python layer
And tried adding both (separately) trepan2 seems to be registered when I do M-x realgud:trepan2 (and will execute as it should), however SPC-m-d-d doesn't seem to be firing as it should do. As far as I can see the add-realgud-debugger mode should do this. I'm fairly new to emacs, so am at a bit of a loss as to how to debug this - have I missed anything? FYI, there's a PR open on your other repo for transient state keybindings. |
Adding it to If you want to add (defun python/post-init-realgud ()
(spacemacs/add-realgud-debugger ‘python-mode “trepan2”)) |
@sukeyisme originally created this layer with #8799. However his implementation only supported the
c-c++
layer, so @syl20bnr merged it into that layer instead of creating a new one. I have since refactored the code so that this functionality can be added to any language. I updated thec-c++
layer to use the new method for adding debuggers and also added support for perl5.This should be its own layer since realgud supports many languages.
I have added a method called
spacemacs/add-realgud-debugger
that can be called from any language layer to add support for their respective debuggers. If language layer maintainers want to add debugger support they can use this call in apost-init-realgud
function.