Comments (5)
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.
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.
A bit busy now... I'll try it out in a few days.
from lldb.nvim.
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.
cc #59
from lldb.nvim.
Related Issues (20)
- Breakpoints don't work when symbolic links are involved in the path to working directory
- A fork to support Vim-with-channels HOT 3
- Complain about unsaved session file after `:LLsession show`? HOT 3
- `target.source-map` is not working properly
- Loading coredumps HOT 2
- Breakpoint issues when a shared library is using in macOS Sierra HOT 8
- How to debug an interactive command line application? HOT 7
- Way of detecting through vimscript what mode nvim is in HOT 1
- UpdateRemotePlugins throws error HOT 25
- Breakpoint symbols not visible HOT 2
- Move the repository to an organization HOT 6
- Can I use terminal command just like ConqueGDB? HOT 1
- Issues with frame variable when examining std::vector HOT 6
- Multithread debug issues HOT 9
- It do not accept LL commands. and then happened EventLoopError. HOT 4
- Possible index out of range error
- README does not mention this repo in the install section HOT 1
- After installation, LL commands are not recognized HOT 2
- process interrupt not working unless a breakpoint has been hit HOT 3
- Upstream bugs! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lldb.nvim.