Support "multi-session" mode properly

Document remote debugging and add a test
This commit is contained in:
Ben Jackson 2020-05-15 15:18:06 +01:00 • committed by Ben Jackson
commit c6d6c7f876
12 changed files with 417 additions and 36 deletions

View file

@ -39,7 +39,7 @@ function! vimspector#internal#channel#StartDebugSession( config ) abort
return v:false
endif
let l:addr = 'localhost:' . a:config[ 'port' ]
let l:addr = get( a:config, 'host', 'localhost' ) . ':' . a:config[ 'port' ]
echo 'Connecting to ' . l:addr . '... (waiting fo up to 10 seconds)'
let s:ch = ch_open( l:addr,

View file

@ -39,7 +39,7 @@ function! vimspector#internal#neochannel#StartDebugSession( config ) abort
return v:false
endif
let addr = 'localhost:' . a:config[ 'port' ]
let l:addr = get( a:config, 'host', 'localhost' ) . ':' . a:config[ 'port' ]
let s:ch = sockconnect( 'tcp', addr, { 'on_data': funcref( 's:_OnEvent' ) } )
if s:ch <= 0