Comments (3)
That's a good idea! To support colours, we just need to skip escape sequences when parsing the debugger output in scm.py
before feeding it to the regexp matchers. Would you be able to implement this and create a pull request?
from nvim-gdb.
All right, I tried your code and realized what happens. GDB is actually run in a PTY by an auxiliary program gdbproxy.py
. It conceals service commands issued by the plugin from the user. Basically, it cuts everything between server info breakpoints
and (gdb)
out, while letting through everything else.
Having changed the prompt, we left the proxy in the closed state forever.
Reference:
Line 18 in da5819e
There is a bug in this program that it stays filtering forever. It should probably stop filtering after some timeout.
We could potentially extend the terminator PROMPT
to skip escape sequences when looking for a match. Or teach the program to adapt to the current prompt more intelligently.
from nvim-gdb.
@mightymicha, I solved this issue using gdb.prompt_hook
to mark the prompt. Now the program doesn't care about the shape of the GDB prompt assuming no one overrides the hook.
Please feel free to reopen if it doesn't work for you.
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.