Fix true/false in JSON when setting up adapter
This commit is contained in:
parent
55bb50d296
commit
bbaab0ebc1
1 changed files with 4 additions and 3 deletions
|
|
@ -473,10 +473,11 @@ class DebugSession( object ):
|
||||||
if 'cwd' not in self._adapter:
|
if 'cwd' not in self._adapter:
|
||||||
self._adapter[ 'cwd' ] = os.getcwd()
|
self._adapter[ 'cwd' ] = os.getcwd()
|
||||||
|
|
||||||
|
vim.vars[ '_vimspector_adapter_spec' ] = self._adapter
|
||||||
channel_send_func = vim.bindeval(
|
channel_send_func = vim.bindeval(
|
||||||
"vimspector#internal#{}#StartDebugSession( {} )".format(
|
"vimspector#internal#{}#StartDebugSession( "
|
||||||
self._connection_type,
|
" g:_vimspector_adapter_spec "
|
||||||
json.dumps( self._adapter ) ) )
|
")".format( self._connection_type ) )
|
||||||
|
|
||||||
if channel_send_func is None:
|
if channel_send_func is None:
|
||||||
self._logger.error( "Unable to start debug server" )
|
self._logger.error( "Unable to start debug server" )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue