Giter Site home page Giter Site logo

Comments (7)

Narice avatar Narice commented on April 29, 2024 1

I came back to the plugin today and yes! this works out of the box
Don't really know why it didn't work at the time!

from nvim-gdb.

sakhnik avatar sakhnik commented on April 29, 2024

@Narice, I can't understand the issue yet. Could you please provide your configuration and the steps to reproduce the problem?

from nvim-gdb.

Narice avatar Narice commented on April 29, 2024

Sorry for the late reply but here is what is happening.
in my .vimrc, I have put the code that is in the README.md for nvimgdb_config_override.
Thus, I have 's' mapped to 'step'.
But, when I do :GdbStart, I have to enter 'start' in the gdb console to start the process
But, as I have 's' mapped to 'step', I can't enter the 's' of 'start' without triggering the step command.
So I can't write 'start' in an intuitive fashion in the console.

Step to reproduce:

  • Put the code mentioned in the README.md into a .vimrc
  • Start the debug tab
  • Try to enter start or any command including any letter used in the nvimgdb_config_override option in the gdb console

from nvim-gdb.

sakhnik avatar sakhnik commented on April 29, 2024

I see what's going on now, thanks! Let me think how to fix it.

from nvim-gdb.

sakhnik avatar sakhnik commented on April 29, 2024

It turns out it's already possible to suppress the keymaps in the terminal window. So going to update the README.

from nvim-gdb.

Narice avatar Narice commented on April 29, 2024

Sorry to bother but I don't really see how what you added in the readme helps.
It seems I didn't understand the solution
I'll try to work it out in the meantime but I'm not sure I'll succeed
just copying what you wrote doesn't work out of the box, I'm surely missing something

from nvim-gdb.

sakhnik avatar sakhnik commented on April 29, 2024

It should work out of the box now. We started from the keys like s triggering a GDB command step in the debugger window. However, if an (almost) empty hook function set_tkeymaps is specified, the plugin won't define normal keymaps in the terminal window.
It tried the config and it works for me.

from nvim-gdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.