diff options
author | Jon Cairns <jon@joncairns.com> | 2015-09-09 16:17:27 +0100 |
---|---|---|
committer | Jon Cairns <jon@joncairns.com> | 2015-09-09 16:17:27 +0100 |
commit | 74cf9c04364e72afcc24468ca0be95376a44eb3b (patch) | |
tree | f7edff4dad0dd333e4948f0c0b954166645c0cf1 /rubylib | |
parent | 1c2d32198f9e64ac2bd540e1b0476e083ab532b1 (diff) | |
download | vdebug-74cf9c04364e72afcc24468ca0be95376a44eb3b.zip |
Tidy up feature tests
Diffstat (limited to 'rubylib')
-rw-r--r-- | rubylib/vdebug.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rubylib/vdebug.rb b/rubylib/vdebug.rb index 91280d0..5d3797e 100644 --- a/rubylib/vdebug.rb +++ b/rubylib/vdebug.rb @@ -15,8 +15,10 @@ class Vdebug def start_listening write_lock_file! clear_buffer_cache! - set_opt "debug_file_level", 2 - set_opt "debug_file", "/tmp/vdebug.log" + if ENV["DEBUG"] + set_opt "debug_file_level", 2 + set_opt "debug_file", "/tmp/vdebug.log" + end set_opt "background_listener", 0 vim.server.remote_send ":python debugger.run()<CR>" sleep 2 @@ -95,7 +97,7 @@ class Vdebug def watch_vars watch_lines = watch_window_content.split("\n")[4..-1] - p Hash[watch_lines.join("").split('|').map { |v| + Hash[watch_lines.join("").split('|').map { |v| v.gsub(/^.*#{watch_win_marker}/, "").split("=", 2).map(&:strip) }] end |