GithubHelp home page GithubHelp logo

Comments (5)

critiqjo avatar critiqjo commented on May 27, 2024

Is this the expected behavior?

No, that would be a bug! Does this happen every single time? Here is an description of what goes on when a breakpoint is hit:

First, the control comes here, and eventually calls this which executes this to update all buffers. And this is the innermost call where the actual updates happen (where it decides to invoke Neovim RPC to update the buffers only if the new content differs from the old).

from lldb.nvim.

phcerdan avatar phcerdan commented on May 27, 2024

After a play test, I've found that it only happens when I remove the "default" start breakpoint AND there is some command line argument read involved.

I can reproduce it with your test file: ab.c. If I remove the starting break point in L14, and put it, in L18.

I don't get a prompt asking me to enter a number, but I can enter it anyway, and the programs ends properly, however it doesn't hit the L18 breakpoint.

If I change the call to scanf in L15 for a=20;, I can remove the default starting breakpoint, put it in L18 and it works good.

Does this happen to you too? Maybe it is unrelated with your plugin, and related with a bug of lldb in arch...

from lldb.nvim.

critiqjo avatar critiqjo commented on May 27, 2024

A bit busy now... I'll try it out in a few days.

from lldb.nvim.

critiqjo avatar critiqjo commented on May 27, 2024

As you mentioned, if I remove the breakpoint at line 14 (keeping scanf), then "Enter a number: " is not printed (whatever I do, it does not get printed at this point). But if I input some number (anyway), then the execution continues and hits the first breakpoint, and all that is to be printed gets printed.

But, I don't think this is a problem with the auto-refresh mechanism, though. I believe this is because lldb failed to immediately notify the plugin of receiving stuff in stdout in that particular situation.

from lldb.nvim.

johncf avatar johncf commented on May 27, 2024

cc #59

from lldb.nvim.

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.