Wait for up to 10s to attach to socket
This commit is contained in:
parent
0e76340435
commit
82e351454d
1 changed files with 2 additions and 0 deletions
|
|
@ -57,11 +57,13 @@ function! vimspector#internal#channel#StartDebugSession( config ) abort
|
|||
|
||||
let l:addr = 'localhost:' . a:config[ 'port' ]
|
||||
|
||||
echo 'Connecting to ' . l:addr . '... (waiting fo up to 10 seconds)'
|
||||
let s:ch = ch_open( l:addr,
|
||||
\ {
|
||||
\ 'mode': 'raw',
|
||||
\ 'callback': funcref( 's:_OnServerData' ),
|
||||
\ 'close_cb': funcref( 's:_OnClose' ),
|
||||
\ 'waittime': 10000,
|
||||
\ }
|
||||
\ )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue