Permalink
Browse files

Move script to the very right of rdebug-vim command

This way, we can easily pass additional params to the script
  • Loading branch information...
1 parent a1660bc commit 1ccb0831cfe7bba14400fa81a051938e975c3b38 @astashov committed May 9, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 autoload/ruby_debugger.vim
  2. +1 −1 src/additionals/autoload/ruby_debugger.vim
  3. +1 −1 src/ruby_debugger/server.vim
View
2 autoload/ruby_debugger.vim
@@ -1831,7 +1831,7 @@ function! s:Server.start(script, params) dict
" Remove leading and trailing quotes
let script_name = substitute(a:script, "\\(^['\"]\\|['\"]$\\)", '', 'g')
let s:socket_file = tempname()
- let cmd = g:ruby_debugger_executable . ' ' . script_name . ' --file ' . s:tmp_file . ' --output ' . s:server_output_file . ' --socket ' . s:socket_file . ' --logger_file ' . s:logger_file . ' --debug_mode ' . g:ruby_debugger_debug_mode . ' --vim_executable ' . g:ruby_debugger_progname . ' --vim_servername ' . v:servername . ' --separator ' . s:separator
+ let cmd = g:ruby_debugger_executable . ' --file ' . s:tmp_file . ' --output ' . s:server_output_file . ' --socket ' . s:socket_file . ' --logger_file ' . s:logger_file . ' --debug_mode ' . g:ruby_debugger_debug_mode . ' --vim_executable ' . g:ruby_debugger_progname . ' --vim_servername ' . v:servername . ' --separator ' . s:separator . ' -- ' . script_name
call s:log("Executing command: ". cmd)
let s:rdebug_pid = split(system(cmd), "\n")[-1]
call s:log("PID: " . s:rdebug_pid)
View
2 src/additionals/autoload/ruby_debugger.vim
@@ -1831,7 +1831,7 @@ function! s:Server.start(script, params) dict
" Remove leading and trailing quotes
let script_name = substitute(a:script, "\\(^['\"]\\|['\"]$\\)", '', 'g')
let s:socket_file = tempname()
- let cmd = g:ruby_debugger_executable . ' ' . script_name . ' --file ' . s:tmp_file . ' --output ' . s:server_output_file . ' --socket ' . s:socket_file . ' --logger_file ' . s:logger_file . ' --debug_mode ' . g:ruby_debugger_debug_mode . ' --vim_executable ' . g:ruby_debugger_progname . ' --vim_servername ' . v:servername . ' --separator ' . s:separator
+ let cmd = g:ruby_debugger_executable . ' --file ' . s:tmp_file . ' --output ' . s:server_output_file . ' --socket ' . s:socket_file . ' --logger_file ' . s:logger_file . ' --debug_mode ' . g:ruby_debugger_debug_mode . ' --vim_executable ' . g:ruby_debugger_progname . ' --vim_servername ' . v:servername . ' --separator ' . s:separator . ' -- ' . script_name
call s:log("Executing command: ". cmd)
let s:rdebug_pid = split(system(cmd), "\n")[-1]
call s:log("PID: " . s:rdebug_pid)
View
2 src/ruby_debugger/server.vim
@@ -19,7 +19,7 @@ function! s:Server.start(script, params) dict
" Remove leading and trailing quotes
let script_name = substitute(a:script, "\\(^['\"]\\|['\"]$\\)", '', 'g')
let s:socket_file = tempname()
- let cmd = g:ruby_debugger_executable . ' ' . script_name . ' --file ' . s:tmp_file . ' --output ' . s:server_output_file . ' --socket ' . s:socket_file . ' --logger_file ' . s:logger_file . ' --debug_mode ' . g:ruby_debugger_debug_mode . ' --vim_executable ' . g:ruby_debugger_progname . ' --vim_servername ' . v:servername . ' --separator ' . s:separator
+ let cmd = g:ruby_debugger_executable . ' --file ' . s:tmp_file . ' --output ' . s:server_output_file . ' --socket ' . s:socket_file . ' --logger_file ' . s:logger_file . ' --debug_mode ' . g:ruby_debugger_debug_mode . ' --vim_executable ' . g:ruby_debugger_progname . ' --vim_servername ' . v:servername . ' --separator ' . s:separator . ' -- ' . script_name
call s:log("Executing command: ". cmd)
let s:rdebug_pid = split(system(cmd), "\n")[-1]
call s:log("PID: " . s:rdebug_pid)

0 comments on commit 1ccb083

Please sign in to comment.