summaryrefslogtreecommitdiff
path: root/rubylib
diff options
context:
space:
mode:
authorJon Cairns <jon@joncairns.com>2013-07-10 10:54:55 +0100
committerJon Cairns <jon@joncairns.com>2013-07-10 10:54:55 +0100
commit4a3e129f3d3cd9affe82a68e1924c943ad34cbe0 (patch)
treec8a5854a8fb92eb4a1b8309017c97302801d976a /rubylib
parent92b5b8cfc640edd102cbf1fe43dd3c0007d5bc54 (diff)
downloadvdebug-4a3e129f3d3cd9affe82a68e1924c943ad34cbe0.zip
Add failing cucumber feature to describe #95
Diffstat (limited to 'rubylib')
-rw-r--r--rubylib/vdebug.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/rubylib/vdebug.rb b/rubylib/vdebug.rb
index 88e8cfd..6da9f14 100644
--- a/rubylib/vdebug.rb
+++ b/rubylib/vdebug.rb
@@ -10,7 +10,11 @@ class Vdebug
def start_listening
clear_buffer_cache!
vim.server.remote_send ":python debugger.run()<CR>"
- sleep 0.5
+ sleep 1
+ end
+
+ def step_over
+ vim.command 'python debugger.step_over()'
end
# Retrieve a hash with the buffer names (values) and numbers (keys)
@@ -36,8 +40,8 @@ class Vdebug
end
def connected?
- vim.server.remote_send(
- ":python debugger.runner.is_alive()"
+ vim.command(
+ "python print debugger.runner.is_alive()"
) == "True"
end