Support "multi-session" mode properly
Document remote debugging and add a test
This commit is contained in:
parent
36253e58ce
commit
c6d6c7f876
12 changed files with 417 additions and 36 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue