Thanks to visit codestin.com
Credit goes to github.com

Skip to content
View PalmebeachPr's full-sized avatar

Block or report PalmebeachPr

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
PalmebeachPr/README.md

GDBFromVim

This pluging lets you debug your applications with gdb from vim, there is no need to open a gdb instance like other plugins do. Gdbfromvim relies on gdblib which spawns its own gdb instance.

Requirements

Usage

In order to make easier handling GdbFromVim you might find these mappings handy:

nnoremap <F4> :GdbFromVimRun <CR>
nnoremap <F5> :GdbFromVimStep <CR>
nnoremap <F6> :GdbFromVimNext <CR>
nnoremap <F7> :GdbFromVimAddBreakpoint <CR>
nnoremap <F8> :GdbFromFromDeleteBreakpoint <CR>
nnoremap <F9> :GdbFromVimClear <CR>

GdbFromVimRun

This command starts the execution of the program. Arguments can be passed to it.

GdbFromVimStep

This commands steps into a function.

GdbFromVimNext

This command pass over a function.

GdbFromVimContinue

This command continues with the execution of the program, this command is also used to start remote debugging.

GdbFromVimAddBreakpoint

This command adds a breakpoint in the current line.

GdbFromVimDeleteBreakpoint

This command deletes the breakpoint specified by its number, it requires an argument, For example to delete the breakpoint number 2: GdbFromVimDeleteBreakpoint 2

GdbFromVimDeleteAllBreakpoints

This command deletes all the breakpoints previously set.

GdbFromVimClear

This commands deletes the breakpoint in the current line.

GdbFromVimPrint

This command prints the value of a variable, it requires an argument, For example: GdbFromVimPrint point->x

GdbFromVimPrintBreakpoints

This command prints all the breakpoints set in the application, the values are printed in the quickfix list.

GdbFromVimClose

Closes the current gdb connection, this command might be used if you want to change the application to debug at runtime.

GdbFromVimTty

This command is used to redirect the IO to the specified tty passed as argument.

GdbFromVimRemote

This command is used to perform remote debugging, it receives as argument the host and its port:

GdbFromVimRemote 127.0.0.1:1234

GdbFromVimSymbolFile

Adds the symbol file passed as argument to gdb.

Configuration

Setting the application to debug

    let g:gdb_from_vim_app = 'application'

If this variable is not defined GdbFromVim will prompt for user input.

Setting the arguments for the application

    let g:gdb_from_vim_args = 'arguments'

Setting the gdb path

    let g:gdb_from_vim_path = '/usr/bin/gdb'

If arguments are passed to GdbFromVimRun the value of this variable are overriden.

License

GdbFromVim is licensed under a GPL2 license. For more details see the LICENSE file.

Bugs

If you find a bug please let me know by opening an issue at: https://github.com/skibyte/gdb-from-vim/issues

Credits

Author: Fernando Castillo [email protected]

Popular repositories Loading

  1. PalmebeachPr PalmebeachPr Public

    PalmebeachPr/PalmebeachPr is a ✨special ✨ repository

    Vim Script

  2. Installer Installer Public

    PS3Xploit v3 HAN Cold Boot Installer [RAF/AC3 Files] [Supports OFW/HFW/CFW]

    JavaScript

  3. understandc understandc Public

    Add some component or frame of SpringCloud to my project , and understand the usage and principle 。

    Python

  4. stunniss stunniss Public

    Simple BIP32 HD cryptocurrecy command line wallet

    Python

  5. Tigshop Tigshop Public

    Forked from tigshop/Tigshop

    🔥🔥🔥100%开源的企业级商城系统,使用最新前沿技术栈,基于Tp8+Vue3+Ts,支持H5、微信小程序、公众号、IOS、安卓、鸿蒙等多端,高性能高并发,极易二次开发,更提供了免费完善的使用文档、接口文档、开发文档。标准版支持PC/移动端页面装修、主题颜色一键切换、秒杀、优惠券、积分、等功能和营销,另有支持分销系统、IM客服系统、多商户、多店铺、多门店、多语言切换等的单独版本。

    PLpgSQL

  6. csghub-server csghub-server Public

    Forked from OpenCSGs/csghub-server

    csghub-server is the backend server for CSGHub which helps user to manage datasets, modes, and also run Model Inference, Finetune and Application Spaces.

    Go