jaredly / vim-debug

A plugin for VIM that creates an Integrated Debugging Environment :) Currently works with PHP and Python
http://jaredforsyth.com/projects/vim-debug
MIT License
284 stars 28 forks source link

.. |vim-debug-logo| image:: https://raw.github.com/jabapyth/vim-debug/master/logo.png

|vim-debug-logo| vim-debug

.. Maintainer: Jared Forsyth jared@jaredforsyth.com .. Source: http://github.com/jabapyth/vim-phpdebug

This plugin creates an integrated debugging environment in VIM.

It supports Python 2 and PHP.

Support Status

Seeking maintainer! I haven't used this actively in many years, and it's likely that alternatives have cropped up that are better. If you know one (or find one) please PR this readme and put a link [here] :D If you want to make this package better, open an issue asking to be a maintainer! Thanks

License

MIT

Features

Planned:

Usage

To start your debug session, use the following variants::

Usage: Dbg - (no auto start) Dbg . (autostart current file -- python) Dbg url (autostart a URL -- PHP) Dbg num (autostart a past url -- PHP)

Note: for PHP urls, vim-debug keeps track of the last 5 urls you debugged -- so you don't have to keep typing them in.

Debugger commands::

[usage:] dbg command [options]

To disable the default mappings, set the variable g:vim_debug_disable_mappings to a value different than 0 in the debugger.vim file.

For example::

let g:vim_debug_disable_mappings = 1

Installation

Execute the following commands::

sudo pip install dbgp

and then use your preferred vim plugin manage (pathogen <https://github.com/tpope/vim-pathogen>, Vundle <https://github.com/gmarik/vundle>, vim-plug <https://github.com/junegunn/vim-plug>_, et al.) and install this repository (jaredly/vim-debug) as appropriate for the given manager.

Take a look

Screenshot: [full size] <http://jaredforsyth.com/media/uploads/images/vim_debug.jpeg>_

.. image:: http://jaredforsyth.com/media/uploads/images/vim_debug.jpeg :width: 450

A screencast tutorial: https://www.youtube.com/watch?v=kairdgZCD1U

Some links of interest

Python package installer <http://pypi.python.org/pypi/pip>_

Xdebug docs <http://www.xdebug.org/docs-dbgp.php>_

Credits

:Sam Ghods: (last activity 6/21/07) <http://www.vim.org/scripts/script.php?script_id=1929>_ :Seung Woo Shin: (last activity 12/7/04) <http://www.vim.org/scripts/script.php?script_id=1152>_