summaryrefslogtreecommitdiffstats
path: root/runtime/doc/debug.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-01-06 20:52:26 +0100
committerBram Moolenaar <Bram@vim.org>2010-01-06 20:52:26 +0100
commit8f3f58f2c361f1b7241128d9821f88d8a30aa066 (patch)
treebd5827eec39ddf8e6a94919a6a541765882f00d4 /runtime/doc/debug.txt
parent28c37959871b83fd5d1d621f70bce29dc3f21ba4 (diff)
Update documentation files.
Diffstat (limited to 'runtime/doc/debug.txt')
-rw-r--r--runtime/doc/debug.txt25
1 files changed, 22 insertions, 3 deletions
diff --git a/runtime/doc/debug.txt b/runtime/doc/debug.txt
index 44c9f9f1a7..654d89b581 100644
--- a/runtime/doc/debug.txt
+++ b/runtime/doc/debug.txt
@@ -1,4 +1,4 @@
-*debug.txt* For Vim version 7.2. Last change: 2006 May 01
+*debug.txt* For Vim version 7.2. Last change: 2009 Jul 22
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -10,7 +10,8 @@ This is for debugging Vim itself, when it doesn't work properly.
For debugging Vim scripts, functions, etc. see |debug-scripts|
1. Location of a crash, using gcc and gdb |debug-gcc|
-2. Windows Bug Reporting |debug-win32|
+2. Locating memory leaks |debug-leaks|
+3. Windows Bug Reporting |debug-win32|
==============================================================================
@@ -38,7 +39,25 @@ This also applies when using the MingW tools.
==============================================================================
-2. Windows Bug Reporting *debug-win32*
+2. Locating memory leaks *debug-leaks*
+
+If you suspect Vim is leaking memory and you are using Linux, the valgrind
+tool is very useful to pinpoint memory leaks.
+
+First of all, build Vim with EXITFREE defined. Search for this in MAKEFILE
+and uncomment the line.
+
+Use this command to start Vim: *valgrind*
+>
+ valgrind --log-file=valgrind.log ./vim
+
+Note: Vim will run much slower. If your .vimrc is big or you have several
+plugins you need to be patient for startup, or run with the "-u NONE"
+argument.
+
+==============================================================================
+
+3. Windows Bug Reporting *debug-win32*
If the Windows version of Vim crashes in a reproducible manner, you can take
some steps to provide a useful bug report.