Giter Site home page Giter Site logo

Comments (3)

Narice avatar Narice commented on April 28, 2024 1

I was wondering if it was the lua part or gdb itself that was causing this behavior
But I guess that yeah, it's pretty difficult to resolve it and with little or no effect on the user experience.
Thanks for checking it out nevertheless!

from nvim-gdb.

sakhnik avatar sakhnik commented on April 28, 2024

I'm thinking that this could probably be solved.

  • Check whether there already is a breakpoint on the cursor line => nothing in our case
  • Set a breakpoint
  • See on which line the new breakpoint appeared (we'll need to compare the two states, before and after; depends on #25)
  • If it went onto the line whether there was already another breakpoint, send another command to clear the two breakpoints
    This could be useful, need to consider it carefully.

from nvim-gdb.

sakhnik avatar sakhnik commented on April 28, 2024

I'm inclined to consider this a non-issue. There is no way to guess where the breakpoint is going to be set without actually placing one. It just sounds right that if a breakpoint is to be deleted, the cursor should be exactly on that line. And finally, to avoid unnecessary complication of the code, I'm closing this ticket.

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.