Hi, On Tue, May 15, 2018 at 10:52 AM, Jason Franklin <[email protected]> wrote: > Does anyone have any advice for running Vim with a debugger? > > 1. What debugger is preferred? GDB or something else? Specific commands to > run would be useful here. >
I have used both GDB and LLDB to debug Vim (on both Linux and MacOS). > > 2. How do I build Vim with debugging information in the binary? > Configure and build Vim as usual. Edit src/Makefile, search for "CFLAGS = " and replace it with the following: CFLAGS = -g -O0 Run the "make clean" command followed by "make" to build Vim with debug symbols. Invoke gdb/lldb and load Vim (either gdb src/vim or lldb src/vim). Set up breakpoints and use the "run" command to start Vim and start debugging. - Yegappan > > 3. How can I go about debugging Vim on Windows? > > Thanks, > Jason Franklin > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
