Comments (9)
@sakhnik Then, again please bear with me just making assumptions here, is it possible to use named buffers for nvim-gdb? They don't need to be actually saved somewhere but only used for bufname matching as somewhat a guard during cleanup, e.g. /tmp/nvim-gdb.session-[0|1|2|...].[src|dbg]
.
from nvim-gdb.
I'm not sure I understand the issue. One [noname]
buffer seems to be present upon nvim launch even without the plugin. Whatever I tried, I couldn't notice any unwanted buffers. Could you please describe the specific steps to reproduce the issue?
from nvim-gdb.
I'll try to figure out what's causing it, it might be related to a .vimrc option
could it be related to "set hidden"?
from nvim-gdb.
for the steps, I'm exactly doing what you did.
And it's a different one from the startup one.
It adds a new buffer each time I'm leaving gdb.
from nvim-gdb.
Well, if I'm using test/init.vim, no "ghosts". But as soon as I add set hidden
, I experience the issue.
I'm not sure it'd be easy to tackle.
from nvim-gdb.
Maybe just disable hidden while in the process of quitting gdb and then re-enabling it
I'll try it later today
from nvim-gdb.
Sorry for bumping an old issue but it seems this problem is still reproducible in my case. I'm running neovim v0.4.3 with the latest nvim-gdb and indeed I've got set hidden
in vimrc. Just thinking out loud here but I wonder whether it's possible to just bwipe
the buffers used by nvim-gdb during cleanup?
from nvim-gdb.
Yes, probably. The plugin could keep track of the buffers specifically opened for the debugger. But the fix will require careful consideration because leaving "ghost" buffers around is a tiny nuisance in comparison to undesirable obliterations. What if a user edits the source code when debugging?
from nvim-gdb.
I guess this wouldn't be strictly necessary because the plugin could just remember the buffers. Then we could probably distinguish the modified ones from the untouched ones, skip through the unsaved ones etc. I'll have to experiment around.
from nvim-gdb.
Related Issues (20)
- Is it possible to disable default keybindings? HOT 1
- Implement checkhealth
- Feature Request: Make vim the owner of breakpoints and not the debugger HOT 3
- Error detected while processing TabLeave Autocommands for "*" on tabnew: GdbStartPDB HOT 7
- [Solved] Unknown sign: GdbBreakpoint0 after merging d7504a52e3f5f1b6d7f62a006646681bde65a310 HOT 2
- 'GdbStart...' error if delete buffer at event 'NvimGdbCleanup' HOT 2
- mingw support? HOT 6
- Port the test suite to be based on Lua
- Port launch scripts to Lua
- Port PTY proxy to Lua
- Support PerlDB HOT 4
- gdb attach mode HOT 1
- My environment breaks the plugin HOT 2
- error calling thread_get_state for gp registers for thread 0x1d3 HOT 9
- nvim_config_override works with vimscript functions but not lua functions HOT 1
- DWARF2 Queue Guard Internal Error on run HOT 6
- showing variables when debugging with bashdb HOT 3
- [Question] unable to run lldb on Mac HOT 2
- GDB crashes with Fatal signal: Segmentation fault
- "Break" in command line history pdb 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 nvim-gdb.