vimgdb安装
2024-10-18 10:46:11
vimgdb install
**************
a) You need: vim-7.3.tar.bz2 http://www.vim.org/sources.php vimgdb-for-vim7. (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..tar.gz -C /tmp cd /tmp patch -p0 < vimgdb-for-vim7./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./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
下载地方备份:
ctags:
生成tags
ctags -R
Ctrl+ ]跳到光标所在函数或者结构体的定义处
Ctrl+ T返回查找或跳转
比较好的文章:
http://easwy.com/blog/archives/advanced-vim-skills-cscope/
http://easwy.com/blog/archives/vim-cscope-ctags/
最新文章
- Java 浅析内部类
- 博客 博客vno主题(我正在用的这个博客主题)
- 群晖SVN Server远程访问
- codeforces 442B B. Andrey and Problem(贪心)
- NSUserdefaults 简介以及存储自定义数据类型的方法
- Ajax编程中,经常要能动态的改变界面元素的样式
- 欧拉工程第66题:Diophantine equation
- ios毛玻璃效果
- 【二分】【最长上升子序列】HDU 5489 Removed Interval (2015 ACM/ICPC Asia Regional Hefei Online)
- C++实现Log()日志函数
- jQuery validate 的valid()方法一直返回true
- Linux 使用nexus搭建maven私服
- 《C#从现象到本质》读书笔记(五)第5章字符串第6章垃圾回收第7章异常与异常处理
- Java IntelliJ IDEA 不能显示项目里的文件结构
- ubuntu配置默认python版本并安装pip
- [转] 禁止ultraedit自动检查更新的方法
- centos上yum安装nodeJS
- delphi XE8 NetHTTPRequest NetHTTPClient
- Alpha阶段事后诸葛亮会议记录
- 【工具】SwitchHost的使用