Skip to content

Commit

Permalink
use correct address of debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
bhcleek committed Oct 1, 2018
1 parent b3364cc commit 737e66f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/go/debug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function! s:call_jsonrpc(method, ...) abort
try
" Use callback
if type(Cb) == v:t_func
let s:ch = ch_open('127.0.0.1:8181', {'mode': 'nl', 'callback': Cb})
let s:ch = ch_open(go#config#DebugAddress(), {'mode': 'nl', 'callback': Cb})
call ch_sendraw(s:ch, req_json)

if go#util#HasDebug('debugger-commands')
Expand All @@ -91,7 +91,7 @@ function! s:call_jsonrpc(method, ...) abort
return
endif

let ch = ch_open('127.0.0.1:8181', {'mode': 'nl', 'timeout': 20000})
let ch = ch_open(go#config#DebugAddress(), {'mode': 'nl', 'timeout': 20000})
call ch_sendraw(ch, req_json)
let resp_json = ch_readraw(ch)

Expand Down

0 comments on commit 737e66f

Please sign in to comment.