zoukankan      html  css  js  c++  java
  • vimgdb安装

    vimgdb install
    **************
    a) You need:
    
    vim-7.3.tar.bz2                 http://www.vim.org/sources.php 
    
    vimgdb-for-vim7.3 (this patch)   https://github.com/larrupingpig/vimgdb-for-vim7.3 
    
    b) Untar all files, apply the patch and make Vim:
    
    tar xjvf  vim-7.3.tar.bz2  -C /tmp
    
    tar xzvf  vimgdb-for-vim7.3.tar.gz  -C /tmp
    
    cd /tmp
    
    patch  -p0 < vimgdb-for-vim7.3/vim73.patch
    
    cd vim73/src
    
    ./configure --enable-gdb  --enable-cscope

    make sudo make install IMPORTANT NOTE: you must run make (not .
    /configure), and if you run ./configure then you must add the --enable-gdb command line argument in order to include the gdb feature (vimgdb) in vim. c) Install vimGdb runtime: Copy the file vimgdb_runtime found in the vimgdb tarball, to your runtime path. To find your runtime path location execute the vim command (this is usually $HOME/.vim): :set runtimepath? cp -rf /tmp/vimgdb-for-vim7.3/vimgdb_runtime/* ~/.vim Change to the doc directory, start Vim and run the ":helptags ." command to process the taglist help file. Without this step, you cannot jump to the taglist help topics. You can now use the ":help vimgdb" command to get the vimGdb documentation.

    自带的说明比网上找的都好用

    在.vimrc中添加

    source ~/.vim/macros/gdb_mappings.vim

    vimgdb使用:
    1、run macros/gdb_mappings.vim
    2、按键F7开启映射键对应关系
    3、按空格开启gdb调试功能
    4、使用file调入需要调试的文件
    file ./libexec/mysqld
    5、加一个断点 b xxx

    6、开启运行 r

    7、如何转为垂直分布

    第一步:ctrl+w热键

    第二步:shift+l

    下载地方备份:

    http://pan.baidu.com/s/1zMrq1

    ctags:

    生成tags

    ctags -R

    Ctrl+ ]跳到光标所在函数或者结构体的定义处
    Ctrl+ T返回查找或跳转

    比较好的文章:

    http://easwy.com/blog/archives/advanced-vim-skills-cscope/

    http://easwy.com/blog/archives/vim-cscope-ctags/

  • 相关阅读:
    上传github代码
    git 代码更新
    linux 遇见的问题
    How to stop pycharm show files in project in red color?
    Linux下动态库查找路径的问题
    centos7 建立虚拟目录
    [BZOJ3747] Kinoman
    [BZOJ2169] 连边
    [洛谷P4251] 小凸玩矩阵
    [洛谷P2764] 最小路径覆盖
  • 原文地址:https://www.cnblogs.com/gsblog/p/3382212.html
Copyright © 2011-2022 走看看