Skip to content

Commit 526773c

Browse files
committed
Merge branch 'master' into persistent-eval
2 parents 9bc1678 + 5ed4e13 commit 526773c

22 files changed

Lines changed: 705 additions & 234 deletions

.travis.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1+
notifications:
2+
irc: irc.freenode.org#vdebug
3+
slack:
4+
secure: BksygPSsoRfvre27w6XQN9ooKB9C1n83Bw96YurvyDHJ6BYM2Gv9fW1Sj6NHpB8MQkMaJ+9gRiBSflkP+l80t3EXAdStuI/8EM/wZu1ov6bmYT/hYQ8HnULmmPNj8uVzsX13VGEUC/YY4osWuJFM1wh61dStoF+SKrpslqWCV4w=
15
language: python
26
python:
3-
- "2.6"
4-
- "2.7"
7+
- '2.6'
8+
- '2.7'
59
rvm: 1.9.3
6-
notifications:
7-
irc: "irc.freenode.org#vdebug"
810
before_install:
9-
- sudo apt-get update && sudo apt-get install vim-gtk php5-cli php5-xdebug
11+
- sudo apt-get update && sudo apt-get install vim-gtk php5-cli php5-xdebug
1012
before_script:
11-
- "export DISPLAY=:99.0"
12-
- "sh -e /etc/init.d/xvfb start"
13-
- "bundle install"
14-
# command to install dependencies
13+
- export DISPLAY=:99.0
14+
- sh -e /etc/init.d/xvfb start
15+
- bundle install
1516
install: pip install -r requirements.txt --use-mirrors
16-
# command to run tests
1717
script: bundle exec rake travis

HISTORY renamed to CHANGELOG

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
=== Vdebug 1.5.0 / 2015-08-28
2+
Bug fixes:
3+
* Fix for remote and local file paths with a windows/unix setup (thanks @brothert, #130)
4+
* Sort path maps by remote path length (thanks @ragol and @adambiggs, #153, #201)
5+
* Default "stop" behaviour (default <F6>) actually stops rather than detaches (issue #166)
6+
* Various documentation fixes (issue #172, issue #223, thanks @loonies for #210)
7+
* Add documentation to show that komodo-debug doesn't work with nodejs > 0.10 (#202, #223)
8+
* Don't override previously defined breakpoint highlights (#208)
9+
10+
Features:
11+
* Add support for Python 2.4 (thanks @mbarbon, #189)
12+
* Add Vagrantfile and bootstrap for easier local development
13+
* Add new VdebugTrace command for tracking individual variables and expressions (thanks @escher9, #178)
14+
* Show ellipses for truncated arrays in watch window (#177)
15+
* Bind to all available interfaces by default, instead of just localhost (#209, thanks @zolem)
16+
17+
Misc:
18+
* Changed HISTORY to CHANGELOG
19+
120
=== Vdebug 1.4.2 / 2014-05-15
221

322
Bug fixes:

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ gem 'rake', '~> 10.0.4'
44
gem 'rspec', '~> 2.13.0'
55
gem 'vimrunner', '~> 0.3.0'
66
gem 'cucumber'
7+
gem 'travis'

Gemfile.lock

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,50 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
addressable (2.3.8)
5+
backports (3.6.6)
46
builder (3.2.2)
7+
coderay (1.1.0)
58
cucumber (1.3.3)
69
builder (>= 2.1.2)
710
diff-lcs (>= 1.1.3)
811
gherkin (~> 2.12.0)
912
multi_json (~> 1.7.5)
1013
multi_test (~> 0.0.1)
1114
diff-lcs (1.2.4)
15+
ethon (0.7.4)
16+
ffi (>= 1.3.0)
17+
faraday (0.9.1)
18+
multipart-post (>= 1.2, < 3)
19+
faraday_middleware (0.10.0)
20+
faraday (>= 0.7.4, < 0.10)
21+
ffi (1.9.10)
22+
gh (0.14.0)
23+
addressable
24+
backports
25+
faraday (~> 0.8)
26+
multi_json (~> 1.0)
27+
net-http-persistent (>= 2.7)
28+
net-http-pipeline
1229
gherkin (2.12.0)
1330
multi_json (~> 1.3)
31+
highline (1.7.3)
32+
json (1.8.3)
33+
launchy (2.4.3)
34+
addressable (~> 2.3)
35+
method_source (0.8.2)
1436
multi_json (1.7.7)
1537
multi_test (0.0.1)
38+
multipart-post (2.0.0)
39+
net-http-persistent (2.9.4)
40+
net-http-pipeline (1.0.1)
41+
pry (0.9.12.4)
42+
coderay (~> 1.0)
43+
method_source (~> 0.8)
44+
slop (~> 3.4)
45+
pusher-client (0.6.2)
46+
json
47+
websocket (~> 1.0)
1648
rake (10.0.4)
1749
rspec (2.13.0)
1850
rspec-core (~> 2.13.0)
@@ -22,7 +54,22 @@ GEM
2254
rspec-expectations (2.13.0)
2355
diff-lcs (>= 1.1.3, < 2.0)
2456
rspec-mocks (2.13.1)
57+
slop (3.6.0)
58+
travis (1.8.0)
59+
addressable (~> 2.3)
60+
backports
61+
faraday (~> 0.9)
62+
faraday_middleware (~> 0.9, >= 0.9.1)
63+
gh (~> 0.13)
64+
highline (~> 1.6)
65+
launchy (~> 2.1)
66+
pry (~> 0.9, < 0.10)
67+
pusher-client (~> 0.4)
68+
typhoeus (~> 0.6, >= 0.6.8)
69+
typhoeus (0.7.3)
70+
ethon (>= 0.7.4)
2571
vimrunner (0.3.0)
72+
websocket (1.2.2)
2673

2774
PLATFORMS
2875
ruby
@@ -31,4 +78,5 @@ DEPENDENCIES
3178
cucumber
3279
rake (~> 10.0.4)
3380
rspec (~> 2.13.0)
81+
travis
3482
vimrunner (~> 0.3.0)

README.md

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![Build Status](https://travis-ci.org/joonty/vdebug.png?branch=master)](https://travis-ci.org/joonty/vdebug)
44

5+
## Introduction
6+
57
Vdebug is a new, fast, powerful debugger client for Vim. It's multi-language,
68
and has been tested with PHP, Python, Ruby, Perl, Tcl and NodeJS. It interfaces with
79
**any** debugger that faithfully uses the DBGP protocol, such as Xdebug for PHP.
@@ -16,40 +18,43 @@ It's written in Python, and has an object-oriented interface that is easy to ext
1618
and can even be used from the command-line. It even has unit tests covering
1719
some of the more critical parts of the code.
1820

19-
# Getting help
21+
## Getting help
2022

2123
If you're having trouble with Vdebug in any way, here are the steps you can take to get help (in the right order):
2224

2325
1. [Check the issues][3] to see whether it's already come up.
2426
2. Visit the **#vdebug** irc channel on freenode, someone is normally there.
2527
3. [Open a new issue.][4]
2628

27-
# News
29+
## News
2830

2931
Follow me on Twitter, [@joonty](http://twitter.com/joonty), for Vdebug updates and release news.
3032

31-
* **15/05/2014:** Version 1.4.2 was released. This fixes major problems with the latest version of Vim, which has stricter rules around function naming. See [this pull request for more details][5]
33+
* **26/08/2015:** Version 1.5.0 released. This has a whole series of fixes and even a couple of new features. See below for more information.
34+
* **15/05/2014:** Version 1.4.2 released. This fixes major problems with the latest version of Vim, which has stricter rules around function naming. See [this pull request for more details][5]
3235
* **12/04/2014:** My son was born! Hence no contact or work on Vdebug for the following month.
3336

34-
35-
# Recent version (version 1.4.2)
37+
## Recent version (version 1.5.0)
3638

3739
### Bug fixes:
38-
* Allow overriding of options dictionary after sourcing vdebug (issues #112, #113)
39-
* Show local file path in stack window if using path mapping (issue #118)
40-
* Change function names for stricter rules introduced in Vim v.7.4.260 (thanks @BlackEagle, #158 and #155)
41-
42-
### Documentation:
43-
* Various fixes
44-
* Mention vim-nox package for Debian (thanks @henningda, #138)
45-
* Add Python installation for Windows information (issue #135)
40+
* Fix for remote and local file paths with a windows/unix setup (thanks @brothert, #130)
41+
* Sort path maps by remote path length (thanks @ragol and @adambiggs, #153, #201)
42+
* Default "stop" behaviour (default <F6>) actually stops rather than detaches (issue #166)
43+
* Various documentation fixes (issue #172, issue #223, thanks @loonies for #210)
44+
* Add documentation to show that komodo-debug doesn't work with nodejs > 0.10 (#202, #223)
45+
* Don't override previously defined breakpoint highlights (#208)
4646

4747
### Features:
48-
* Add completion to :Breakpoint command (thanks @tommcdo, #124)
49-
* Add VdebugStart command (thanks @blueyed, #132)
50-
* Sleep for 100ms in wait loop, don't consume as much CPU (thanks @blueyed, #133)
48+
* Add support for Python 2.4 (thanks @mbarbon, #189)
49+
* Add Vagrantfile and bootstrap for easier local development
50+
* Add new VdebugTrace command for tracking individual variables and expressions (thanks @escher9, #178)
51+
* Show ellipses for truncated arrays in watch window (#177)
52+
* Bind to all available interfaces by default, instead of just localhost (#209, thanks @zolem)
53+
54+
### Misc:
55+
* Changed HISTORY to CHANGELOG
5156

52-
# How to use
57+
## How to use
5358

5459
First of all, scoot down to the quick guide below.
5560

@@ -66,7 +71,7 @@ To get this help, type:
6671

6772
after installing the plugin. If this doesn't work, you will need to generate the help tags.
6873

69-
## Generating help tags
74+
### Generating help tags
7075

7176
Some package managers, such as Vundle, will automatically generate help tags. Others, such as Pathogen, won't by default, so you have to do it yourself. Also, if you have installed Vdebug manually then you will also have to do this step.
7277

@@ -84,27 +89,27 @@ To manually generate the tags, run this in vim:
8489

8590
where the path supplied is vdebug's doc directory. This should enable vdebug's help to be accessed.
8691

87-
# Installation
92+
## Installation
8893

8994
**Requirements**:
9095

91-
* Vim compiled with Python 2.6+ support, tabs and signs (for Debian/Ubuntu this is provided in the vim-nox package)
96+
* Vim compiled with Python 2.4+ support, tabs and signs (for Debian/Ubuntu this is provided in the vim-nox package)
9297
* A programming language that has a DBGP debugger, e.g. PHP, Python, Ruby,
9398
Perl, NodeJS, Tcl...
9499

95-
## Classic
100+
### Classic
96101

97102
Clone or download a tarball of the plugin and move its content in your
98103
`~/.vim/` directory.
99104

100105
Your `~/.vim/plugin/` directory should now contain vdebug.vim and a directory
101106
called "python".
102107

103-
## Using git and Pathogen
108+
### Using git and Pathogen
104109

105110
Clone this repository in your `~/.vim/bundle` directory
106111

107-
## Using vundle
112+
### Using vundle
108113

109114
Add this to your `~/.vimrc` file:
110115

@@ -118,7 +123,7 @@ Then, from the command line, run:
118123
vim +BundleInstall +qall
119124
```
120125

121-
# Quick guide
126+
## Quick guide
122127

123128
Set up any DBGP protocol debugger, e.g. Xdebug. (See :help VdebugSetUp). Start Vdebug with `<F5>`, which will make it wait for an incoming connection. Run the script you want to debug, with the debugging engine enabled. A new tab will open with the debugging interface.
124129

@@ -128,7 +133,7 @@ Once in debugging mode, the following default mappings are available:
128133
* `<F2>`: step over
129134
* `<F3>`: step into
130135
* `<F4>`: step out
131-
* `<F6>`: stop debugging
136+
* `<F6>`: stop debugging (kills script)
132137
* `<F7>`: detach script from debugger
133138
* `<F9>`: run to cursor
134139
* `<F10>`: toggle line breakpoint
@@ -143,7 +148,7 @@ To stop debugging, press `<F6>`. Press it again to close the debugger interface.
143148

144149
If you can't get a connection, then chances are you need to spend a bit of time setting up your environment. Type `:help Vdebug` for more information.
145150

146-
# Debugging
151+
## Debugging
147152

148153
If you have a problem, and would like to see what's going on under the hood or raise an issue, it's best to create a log file. You can do this by setting these options before you start debugging:
149154

@@ -156,14 +161,14 @@ Then start debugging, and you can follow what's added to the log file as you go.
156161

157162
If you're creating an issue then it's probably best to upload a log as a Gist, as it can be pretty large.
158163

159-
# Contributing
164+
## Contributing
160165

161166
I gladly accept contributions to the code. Just fork the repository, make your changes and open a pull request with detail about your changes. There are a couple of conditions:
162167

163168
* The tests must pass (see below)
164169
* Your commit messages should follow the [rules outlined here][2]
165170

166-
# Tests
171+
## Tests
167172

168173
* The tests use `unittest2` and `mock`, so make sure they're installed
169174

@@ -174,7 +179,7 @@ pip install mock
174179

175180
* To run the tests, run `python vdebugtests.py` in the top directory of the plugin
176181

177-
# Licence
182+
## Licence
178183

179184
This plugin is released under the [MIT License][1].
180185

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.2
1+
1.5.0

Vagrantfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
VAGRANTFILE_API_VERSION = "2"
5+
6+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7+
# Use Debian 7 64-bit as our operating system, same as production
8+
config.vm.box = "debian/wheezy7.6"
9+
config.vm.box_url = "https://github.com/jose-lpa/packer-debian_7.6.0/releases/download/1.0/packer_virtualbox-iso_virtualbox.box"
10+
11+
# Configure the virtual machine to use 1GB of RAM
12+
config.vm.provider :virtualbox do |vb|
13+
vb.customize ["modifyvm", :id, "--memory", "1024"]
14+
end
15+
16+
# Forward the vdebug server port to the host
17+
config.vm.network :forwarded_port, guest: 9000, host: 9000
18+
19+
# Use a shell script to provision
20+
config.vm.provision :shell, path: "bootstrap.sh"
21+
end

0 commit comments

Comments
 (0)